[PATCH] D31091: [InstCombine] Print a debug message when we constant fold an operand during worklist creation

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 09:43:25 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL298264: [InstCombine] Print a debug message when we constant fold an operand during… (authored by ctopper).

Changed prior to commit:
  https://reviews.llvm.org/D31091?vs=92175&id=92344#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D31091

Files:
  llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp


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;
         }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31091.92344.patch
Type: text/x-patch
Size: 570 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170320/04976154/attachment.bin>


More information about the llvm-commits mailing list