Skip to content

Commit 5f1a84d

Browse files
committed
update assert check
1 parent e460bda commit 5f1a84d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,8 +1255,8 @@ void PPCRegisterInfo::lowerOctWordSpilling(MachineBasicBlock::iterator II,
12551255
bool IsLittleEndian = Subtarget.isLittleEndian();
12561256
bool IsKilled = MI.getOperand(0).isKill();
12571257

1258-
assert(!SrcReg.isVirtual() &&
1259-
"Spilling register pairs does not support virtual registers.");
1258+
assert(PPC::VSRpRCRegClass.contains(SrcReg) &&
1259+
"Expecting STXVP to be utilizing a VSRp register.");
12601260

12611261
addFrameReference(
12621262
BuildMI(MBB, II, DL, TII.get(PPC::STXV))

0 commit comments

Comments
 (0)