[llvm-commits] CVS: reopt/lib/TraceToFunction/TraceToFunction.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Thu May 20 15:06:02 PDT 2004


Changes in directory reopt/lib/TraceToFunction:

TraceToFunction.cpp updated: 1.50 -> 1.51

---
Log message:

Clone of a constant is just the identity function, so don't fix up uses of
constants


---
Diffs of the changes:  (+1 -1)

Index: reopt/lib/TraceToFunction/TraceToFunction.cpp
diff -u reopt/lib/TraceToFunction/TraceToFunction.cpp:1.50 reopt/lib/TraceToFunction/TraceToFunction.cpp:1.51
--- reopt/lib/TraceToFunction/TraceToFunction.cpp:1.50	Thu May 20 14:50:44 2004
+++ reopt/lib/TraceToFunction/TraceToFunction.cpp	Thu May 20 15:04:27 2004
@@ -643,7 +643,7 @@
       // function, and I will still reference the version from
       // outside the function. Replace any reference to an operand
       // which has had a clone made with a reference to its clone.
-      if (O2CMap.find (V) != O2CMap.end () && O2CMap[V]) {
+      if (O2CMap.find (V) != O2CMap.end () && O2CMap[V] && !isa<Constant> (V)) {
         DEBUG(std::cerr << *V << " in instruction " << I
               << " is value " << O2CMap[V] << " in new function\n");
         assert (V->getType () == O2CMap[V]->getType ()





More information about the llvm-commits mailing list