Skip to content

Commit 3798b03

Browse files
committed
add not Reg.isVirtual() check
1 parent 9a4e4d0 commit 3798b03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/PowerPC/PPCInstrInfo.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5248,6 +5248,9 @@ void PPCInstrInfo::promoteInstr32To64ForElimEXTSW(const Register &Reg,
52485248
MachineRegisterInfo *MRI,
52495249
unsigned BinOpDepth,
52505250
LiveVariables *LV) const {
5251+
if (!Reg.isVirtual())
5252+
return;
5253+
52515254
MachineInstr *MI = MRI->getVRegDef(Reg);
52525255
if (!MI)
52535256
return;

0 commit comments

Comments
 (0)