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