[llvm-commits] CVS: llvm/lib/Transforms/Scalar/GCSE.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Feb 5 16:34:01 PST 2004


Changes in directory llvm/lib/Transforms/Scalar:

GCSE.cpp updated: 1.33 -> 1.34

---
Log message:

Add debug output


---
Diffs of the changes:  (+4 -0)

Index: llvm/lib/Transforms/Scalar/GCSE.cpp
diff -u llvm/lib/Transforms/Scalar/GCSE.cpp:1.33 llvm/lib/Transforms/Scalar/GCSE.cpp:1.34
--- llvm/lib/Transforms/Scalar/GCSE.cpp:1.33	Fri Jan  9 00:02:20 2004
+++ llvm/lib/Transforms/Scalar/GCSE.cpp	Thu Feb  5 16:33:19 2004
@@ -21,6 +21,7 @@
 #include "llvm/Analysis/ValueNumbering.h"
 #include "llvm/Support/InstIterator.h"
 #include "Support/Statistic.h"
+#include "Support/Debug.h"
 #include <algorithm>
 using namespace llvm;
 
@@ -165,6 +166,9 @@
 //
 void GCSE::ReplaceInstWithInst(Instruction *First, BasicBlock::iterator SI) {
   Instruction &Second = *SI;
+
+  DEBUG(std::cerr << "GCSE: Substituting %" << First->getName() << " for: "
+                  << Second);
   
   //cerr << "DEL " << (void*)Second << Second;
 





More information about the llvm-commits mailing list