HexagonCopyToCombine.cpp: Silence two warnings, -Wunused-variable, with -Asserts.

llvm-svn: 154759
This commit is contained in:
NAKAMURA Takumi 2012-04-15 05:33:43 +00:00
parent 355eebf4cf
commit 67de410135
1 changed files with 2 additions and 0 deletions

View File

@ -213,6 +213,7 @@ bool HexagonCopyToCombine::isSafeToMoveTogether(MachineInstr *I1,
if (KillingInstr) {
bool Added = KillingInstr->addRegisterKilled(KilledOperand, TRI, true);
assert(Added && "Must successfully update kill flag");
(void)Added;
removeKillInfo(I2, KilledOperand);
}
DoInsertAtI1 = true;
@ -268,6 +269,7 @@ bool HexagonCopyToCombine::isSafeToMoveTogether(MachineInstr *I1,
// the new COMBINE instruction.
bool Added = I1->addRegisterKilled(KilledOperand, TRI);
assert(Added && "Must successfully update kill flag");
(void)Added;
}
DoInsertAtI1 = false;
}