diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 26468c760d4a..7a868d82a859 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -9488,8 +9488,10 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) { // Erase the old instruction. InstParent->getInstList().erase(I); } else { +#ifndef NDEBUG DOUT << "IC: Mod = " << OrigI << " New = " << *I; +#endif // If the instruction was modified, it's possible that it is now dead. // if so, remove it.