[llvm-commits] CVS: reopt/include/reopt/TraceToFunction.h
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Jun 23 16:42:02 PDT 2004
Changes in directory reopt/include/reopt:
TraceToFunction.h updated: 1.14 -> 1.15
---
Log message:
The corresponding value of a constant is... itself.
---
Diffs of the changes: (+1 -0)
Index: reopt/include/reopt/TraceToFunction.h
diff -u reopt/include/reopt/TraceToFunction.h:1.14 reopt/include/reopt/TraceToFunction.h:1.15
--- reopt/include/reopt/TraceToFunction.h:1.14 Mon May 24 03:54:45 2004
+++ reopt/include/reopt/TraceToFunction.h Wed Jun 23 16:41:33 2004
@@ -79,6 +79,7 @@
ValueToIntMap LiveInToParameterMap;
Value *getCorrespondingValue (const Value *V, bool preferLiveIn = true) {
+ if (isa<Constant>(V)) return const_cast<Value *> (V);
if (preferLiveIn) {
ValueToIntMap::iterator It = LiveInToParameterMap.find (V);
if (It != LiveInToParameterMap.end ())
More information about the llvm-commits
mailing list