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.
Details
Details
- Reviewers
rampitec
Diff Detail
Diff Detail
Paths
| Differential D51345
AMDGPU: Shrink insts to fold immediates ClosedPublic Authored by arsenm on Aug 28 2018, 4:52 AM.
Details
Summary This needs to be done in the SSA fold operands
Diff Detail Event TimelineHerald added subscribers: t-tye, tpr, dstuttard and 5 others. · View Herald TranscriptAug 28 2018, 4:52 AM arsenm added a child revision: D51348: CodeGen: Make computeRegisterLiveness consider successors.Aug 28 2018, 4:56 AM This revision is now accepted and ready to land.Aug 28 2018, 11:11 AM
Revision Contents
Diff 162909 lib/Target/AMDGPU/SIFoldOperands.cpp
lib/Target/AMDGPU/SIInstrInfo.h
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/AMDGPU/SIShrinkInstructions.cpp
test/CodeGen/AMDGPU/fold-immediate-operand-shrink-with-carry.mir
test/CodeGen/AMDGPU/fold-immediate-operand-shrink.mir
|
This comment is misleading, function does not copy a MO.