From 27ac0d8670e2d98e6c725368906a68dd281613bb Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Tue, 30 Aug 2016 13:58:35 +0000 Subject: [PATCH] [Reassociate] Add additional debug output. NFC. llvm-svn: 280090 --- llvm/lib/Transforms/Scalar/Reassociate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index e42e2c6d8aa4..1ec7fcea109d 100644 --- a/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp @@ -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 Ops(I->op_begin(), I->op_end()); // Erase the dead instruction. ValueRankMap.erase(I);