mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Make assertion stricter. Since the source operands are allocated at
this point, the second operand must be a physical register (it cannot be a virtual one). llvm-svn: 10292
This commit is contained in:
parent
711ebbdd57
commit
f3373f7bc9
@ -583,7 +583,7 @@ void RA::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
||||
if (TM->getInstrInfo().isTwoAddrInstr(MI->getOpcode()) && i == 0) {
|
||||
// must be same register number as the first operand
|
||||
// This maps a = b + c into b += c, and saves b into a's spot
|
||||
assert(MI->getOperand(1).isRegister() &&
|
||||
assert(MI->getOperand(1).isPhysicalRegister() &&
|
||||
MI->getOperand(1).getAllocatedRegNum() &&
|
||||
MI->getOperand(1).opIsUse() &&
|
||||
"Two address instruction invalid!");
|
||||
|
Loading…
Reference in New Issue
Block a user