This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Shrink insts to fold immediates
ClosedPublic

Authored by arsenm on Aug 28 2018, 4:52 AM.

Details

Reviewers
rampitec
Summary

This needs to be done in the SSA fold operands
pass to be effective, so there is a bit of overlap
with SIShrinkInstructions but I don't think this
is practically avoidable.

Diff Detail

Event Timeline

arsenm created this revision.Aug 28 2018, 4:52 AM
rampitec added inline comments.Aug 28 2018, 8:40 AM
lib/Target/AMDGPU/SIInstrInfo.cpp
2577

This comment is misleading, function does not copy a MO.

lib/Target/AMDGPU/SIShrinkInstructions.cpp
426

Just remove it.

arsenm updated this revision to Diff 162903.Aug 28 2018, 10:57 AM
arsenm updated this revision to Diff 162906.Aug 28 2018, 11:01 AM
arsenm updated this revision to Diff 162909.Aug 28 2018, 11:07 AM

Fix patch split

This revision is now accepted and ready to land.Aug 28 2018, 11:11 AM
arsenm closed this revision.Aug 28 2018, 11:35 AM

r340859

foad added a subscriber: foad.Nov 19 2021, 9:53 AM