[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Mar 9 13:29:07 PST 2004
Changes in directory reopt/lib/LightWtProfiling:
UnpackTraceFunction.cpp updated: 1.41 -> 1.42
---
Log message:
Use TraceFunction::getCorrespondingValue() to look up values in the TraceFn.
---
Diffs of the changes: (+4 -2)
Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.41 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.42
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.41 Mon Mar 8 16:46:55 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp Tue Mar 9 13:18:15 2004
@@ -339,7 +339,8 @@
DEBUG(std::cerr << "UnpackTraceFunction: Looking for alloc state for value: \n" << *V << "\n");
AllocInfo Source = getValueAllocStateFromModule (MatrixF, V);
DEBUG(std::cerr << "UnpackTraceFunction: Source = " << Source << "\n");
- AllocInfo Target = getValueAllocStateFromGlobal (TraceF, V);
+ AllocInfo Target =
+ getValueAllocStateFromGlobal (TraceF, TF->getCorrespondingValue(V));
DEBUG(std::cerr << "UnpackTraceFunction: Target = " << Target << "\n");
if (Source != Target)
EntryCopies.push_back (CopyInfo (Source, Target, &E, V->getType ()));
@@ -375,7 +376,8 @@
for (LiveVariableSet::iterator SI = So.begin (), SE = So.end ();
SI != SE; ++SI) {
Value *V = *SI;
- AllocInfo Source = getValueAllocStateFromGlobal (TraceF, V);
+ AllocInfo Source =
+ getValueAllocStateFromGlobal (TraceF, TF->getCorrespondingValue (V));
AllocInfo Target = getValueAllocStateFromModule (MatrixF, V);
if (Source != Target)
SRI.insertCopyMachineInstrs (Source, Target, MBB, V->getType ());
More information about the llvm-commits
mailing list