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 9753ea8 commit 4a3cb43Copy full SHA for 4a3cb43
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -6484,7 +6484,7 @@ bool SIInstrInfo::moveFlatAddrToVGPR(MachineInstr &Inst) const {
6484
if (OldVAddrIdx >= 0) {
6485
MachineOperand &VAddr = Inst.getOperand(OldVAddrIdx);
6486
VAddrDef = MRI.getUniqueVRegDef(VAddr.getReg());
6487
- if (!VAddrDef || VAddrDef->getOpcode() != AMDGPU::V_MOV_B32_e32 ||
+ if (!VAddrDef || !VAddrDef->isMoveImmediate() ||
6488
!VAddrDef->getOperand(1).isImm() ||
6489
VAddrDef->getOperand(1).getImm() != 0)
6490
return false;
0 commit comments