This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Add pre-legalize combiner pass
ClosedPublic

Authored by arsenm on Jan 6 2020, 6:09 AM.

Details

Summary

Just copy the AArch64 pass as-is for now, except for removing the
memcpy handling.

Diff Detail

Event Timeline

arsenm created this revision.Jan 6 2020, 6:09 AM
kerbowa added inline comments.Jan 13 2020, 9:29 AM
llvm/lib/Target/AMDGPU/AMDGPU.h
34

NITPICK: extra newline

llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
114

I understand this stub pass is copied from AArch64, but the indentation style below doesn't really match the rest of the AMDGPU GlobalISel patches.

131

NITPICK: indent

arsenm updated this revision to Diff 238935.Jan 17 2020, 5:58 PM

Formatting

arsenm marked an inline comment as done.Jan 17 2020, 5:59 PM
arsenm added inline comments.
llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
114

I think this matches what clang-format does

This revision is now accepted and ready to land.Jan 22 2020, 2:51 AM