[llvm-commits] CVS: reopt/include/reopt/TraceToFunction.h

Brian Gaeke gaeke at cs.uiuc.edu
Wed Jul 7 14:12:15 PDT 2004


Changes in directory reopt/include/reopt:

TraceToFunction.h updated: 1.17 -> 1.18

---
Log message:

Replace LiveInToParameterMap with LiveInToArgMap (which maps live-in values
directly to the Argument*s that represent them.)


---
Diffs of the changes:  (+5 -6)

Index: reopt/include/reopt/TraceToFunction.h
diff -u reopt/include/reopt/TraceToFunction.h:1.17 reopt/include/reopt/TraceToFunction.h:1.18
--- reopt/include/reopt/TraceToFunction.h:1.17	Wed Jul  7 01:47:14 2004
+++ reopt/include/reopt/TraceToFunction.h	Wed Jul  7 14:11:24 2004
@@ -74,17 +74,16 @@
   ///
   ValueMap O2CMap;
 
-  /// Map of Trace's live-in values in the MatrixFn --> parameter numbers in
-  /// TraceFn.
+  /// Map of Trace's live-in values in the MatrixFn --> arguments of TraceFn.
   ///
-  ValueToIntMap LiveInToParameterMap;
+  ValueMap LiveInToArgMap;
 
   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 ())
-        return getFunctionArg (TraceFn, It->second);
+      ValueMap::iterator It = LiveInToArgMap.find (V);
+      if (It != LiveInToArgMap.end ())
+        return It->second;
     }
     // Otherwise, ignore live-in values (useful for getting the live-out
     // version of a value that is both live-out and live-in)





More information about the llvm-commits mailing list