[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Jul 6 21:21:14 PDT 2004
Changes in directory reopt/lib/LightWtProfiling:
UnpackTraceFunction.cpp updated: 1.90 -> 1.91
---
Log message:
Make LiveIn, LiveOut, and AlternateEntryPoint vectors that exist in
parallel with the sets. The idea is to gradually reduce dependence on
the sets and use the vectors instead.
---
Diffs of the changes: (+6 -6)
Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.90 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.91
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.90 Thu Jul 1 03:39:48 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp Tue Jul 6 21:19:51 2004
@@ -113,9 +113,9 @@
// Get the saved register allocator state for all live-in variables.
// We are going to need to save live-in values which reside in registers
// on the stack, so we need to dig their register numbers out now.
- LiveVariableSet &Si = TF->LiveInSet;
+ LiveVariableVector &Si = TF->LiveInVector;
AllocStates.clear ();
- for (LiveVariableSet::iterator SI = Si.begin (), SE = Si.end (); SI != SE;
+ for (LiveVariableVector::iterator SI = Si.begin (), SE = Si.end (); SI != SE;
++SI) {
Value *V = *SI;
std::pair<Value *, std::pair<AllocInfo, AllocInfo> > as =
@@ -208,8 +208,8 @@
// 3. Insert a copy for each live-in variable to copy it from the stack
// to the register or stack slot that was allocated for it in the TraceFn.
- LiveVariableSet &Si = TF->LiveInSet;
- for (LiveVariableSet::iterator SI = Si.begin (), SE = Si.end (); SI != SE;
+ LiveVariableVector &Si = TF->LiveInVector;
+ for (LiveVariableVector::iterator SI = Si.begin (), SE = Si.end (); SI != SE;
++SI) {
Value *V = *SI;
std::pair<AllocInfo, AllocInfo> &ai = AllocStates[V];
@@ -457,8 +457,8 @@
// to its stack slot in the trace function, from which it will be
// reloaded below into a register.
std::vector<MachineInstr *> mvec;
- LiveVariableSet &So = TF->LiveOutSet;
- for (LiveVariableSet::iterator SI = So.begin (), SE = So.end ();
+ LiveVariableVector &So = TF->LiveOutVector;
+ for (LiveVariableVector::iterator SI = So.begin (), SE = So.end ();
SI != SE; ++SI) {
Value *V = *SI;
std::pair<AllocInfo, AllocInfo> ai = GetValueAllocState (TF, V, false);
More information about the llvm-commits
mailing list