SystemZ: Fold variable into assertion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185475 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2013-07-02 21:17:31 +00:00
parent 540579eb26
commit 24dd7dbe7f

View File

@ -351,8 +351,8 @@ SystemZInstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
unsigned OpNum = Ops[0];
unsigned Reg = MI->getOperand(OpNum).getReg();
unsigned RegSize = MF.getRegInfo().getRegClass(Reg)->getSize();
assert(Size == RegSize && "Invalid size combination");
assert(Size == MF.getRegInfo().getRegClass(Reg)->getSize() &&
"Invalid size combination");
// Look for cases where the source of a simple store or the destination
// of a simple load is being spilled. Try to use MVC instead.