[Reassociate] Add additional debug output. NFC.

llvm-svn: 280090
This commit is contained in:
Chad Rosier 2016-08-30 13:58:35 +00:00
parent 1f26912e4c
commit 27ac0d8670
1 changed files with 2 additions and 0 deletions

View File

@ -1863,6 +1863,8 @@ void ReassociatePass::RecursivelyEraseDeadInsts(
/// Zap the given instruction, adding interesting operands to the work list.
void ReassociatePass::EraseInst(Instruction *I) {
assert(isInstructionTriviallyDead(I) && "Trivially dead instructions only!");
DEBUG(dbgs() << "Erasing dead inst: "; I->dump());
SmallVector<Value*, 8> Ops(I->op_begin(), I->op_end());
// Erase the dead instruction.
ValueRankMap.erase(I);