diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2016-08-30 13:58:35 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2016-08-30 13:58:35 +0000 |
commit | 27ac0d8670e2d98e6c725368906a68dd281613bb (patch) | |
tree | e0810efad19dc34b2d0b746d04e2a62f46bd676a | |
parent | 1f26912e4ca64c15790487d69156038cd77bd4e4 (diff) | |
download | bcm5719-llvm-27ac0d8670e2d98e6c725368906a68dd281613bb.tar.gz bcm5719-llvm-27ac0d8670e2d98e6c725368906a68dd281613bb.zip |
[Reassociate] Add additional debug output. NFC.
llvm-svn: 280090
-rw-r--r-- | llvm/lib/Transforms/Scalar/Reassociate.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index e42e2c6d8aa..1ec7fcea109 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<Value*, 8> Ops(I->op_begin(), I->op_end()); // Erase the dead instruction. ValueRankMap.erase(I); |