We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b025cc commit 1947b6fCopy full SHA for 1947b6f
llvm/lib/Target/AMDGPU/AMDGPURewriteAGPRCopyMFMA.cpp
@@ -128,10 +128,11 @@ bool AMDGPURewriteAGPRCopyMFMAImpl::run(MachineFunction &MF) const {
128
continue;
129
130
Register CopySrcReg = DefMI->getOperand(1).getReg();
131
- LiveInterval &CopySrcLI = LIS.getInterval(CopySrcReg);
+ if (!CopySrcReg.isVirtual())
132
+ continue;
133
134
+ LiveInterval &CopySrcLI = LIS.getInterval(CopySrcReg);
135
LiveQueryResult LRQ = CopySrcLI.Query(VNI->def.getRegSlot());
-
136
MachineInstr *CopySrcMI = LIS.getInstructionFromIndex(LRQ.valueIn()->def);
137
if (!CopySrcMI)
138
0 commit comments