[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Sun Nov 9 17:49:01 PST 2003
Changes in directory reopt/lib/LightWtProfiling:
UnpackTraceFunction.cpp updated: 1.20 -> 1.21
---
Log message:
Operand numbers are now ints
---
Diffs of the changes: (+3 -3)
Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.20 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.21
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.20 Sun Nov 9 16:43:36 2003
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp Sun Nov 9 17:48:50 2003
@@ -87,7 +87,7 @@
extern "C" {
struct OperandAllocState {
unsigned Instruction;
- unsigned Operand;
+ int Operand;
unsigned AllocState;
int Placement;
};
@@ -141,7 +141,7 @@
Instruction *Instr = cast<Instruction> (V);
unsigned FI = getLLVMFunctionPositionInfo (F);
unsigned VI = getSavedStateIndexOfInstruction (F, Instr);
- unsigned VO = getSavedStateIndexOfOperandInInstruction (F, V, VI);
+ int VO = getSavedStateIndexOfOperandInInstruction (F, V, VI);
// Reconstruct the AllocInfo for V by searching
// _llvm_regAllocState.functions[FI] for a tuple that starts with
// (VI, VO, ...):
@@ -172,7 +172,7 @@
// Figure out the indices (VI, VO) that can be used to look up V, which is an
// operand of some instruction in F, in FState:
unsigned VI = getSavedStateIndexOfInstruction (F, Instr);
- unsigned VO = getSavedStateIndexOfOperandInInstruction (F, V, VI);
+ int VO = getSavedStateIndexOfOperandInInstruction (F, V, VI);
// Retrieve the AllocInfo for V by searching FState for a tuple that starts
// with (VI, VO, ...):
for (unsigned i = 0, s = FState.size (); i < s; ++i) {
More information about the llvm-commits
mailing list