Index: llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp =================================================================== --- llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp +++ llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -3032,6 +3032,8 @@ FoldRes = C; if (FoldRes != C) { + DEBUG(dbgs() << "IC: ConstFold operand of: " << *Inst << "\n Old = " << *C + << "\n New = " << *FoldRes << '\n'); *i = FoldRes; MadeIRChange = true; }