[DSE] Add additional debug output. NFC.
authorChad Rosier <mcrosier@codeaurora.org>
Tue, 19 Jul 2016 16:50:57 +0000 (16:50 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Tue, 19 Jul 2016 16:50:57 +0000 (16:50 +0000)
llvm-svn: 275991

llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

index ed58a87..07926d6 100644 (file)
@@ -612,6 +612,9 @@ static bool handleFree(CallInst *F, AliasAnalysis *AA,
       if (!AA->isMustAlias(F->getArgOperand(0), DepPointer))
         break;
 
+      DEBUG(dbgs() << "DSE: Dead Store to soon to be freed memory:\n  DEAD: "
+                   << *Dependency << '\n');
+
       // DCE instructions only used to calculate that store.
       BasicBlock::iterator BBI(Dependency);
       deleteDeadInstruction(Dependency, &BBI, *MD, *TLI);