[llvm] r276005 - [DSE] Add additional debug output. NFC.
Chad Rosier via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 11:11:11 PDT 2016
Author: mcrosier
Date: Tue Jul 19 13:11:11 2016
New Revision: 276005
URL: http://llvm.org/viewvc/llvm-project?rev=276005&view=rev
Log:
[DSE] Add additional debug output. NFC.
Modified:
llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp?rev=276005&r1=276004&r2=276005&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp Tue Jul 19 13:11:11 2016
@@ -740,6 +740,8 @@ static bool handleEndBlock(BasicBlock &B
// Remove any dead non-memory-mutating instructions.
if (isInstructionTriviallyDead(&*BBI, TLI)) {
+ DEBUG(dbgs() << "DSE: Removing trivially dead instruction:\n DEAD: "
+ << *&*BBI << '\n');
deleteDeadInstruction(&*BBI, &BBI, *MD, *TLI, &DeadStackObjects);
++NumFastOther;
MadeChange = true;
More information about the llvm-commits
mailing list