[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Nov 7 16:04:02 PST 2003
Changes in directory reopt/lib/LightWtProfiling:
UnpackTraceFunction.cpp updated: 1.16 -> 1.17
---
Log message:
Don't think we'll need addGetPointerToStackValInstrs() for now.
---
Diffs of the changes: (+0 -19)
Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.16 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.17
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.16 Fri Nov 7 16:02:12 2003
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp Fri Nov 7 16:03:26 2003
@@ -19,25 +19,6 @@
#include "reopt/MappingInfo.h"
#include "Support/Debug.h"
-#if 0
-/// Append to MVEC the appropriate machine instruction(s) to get a pointer to
-/// the stack-spilled object whose location is described by Source into
-/// register number PointerReg. The frame pointer is in register number
-/// FramePtrReg. Note that the current implementation is SPARC-specific.
-///
-void addGetPointerToStackValInstrs (std::vector<MachineInstr *> &mvec,
- AllocInfo &Source, unsigned PointerReg,
- const unsigned FramePtrReg) {
- // Only works with objects spilled to the stack.
- assert (Source.AllocState == AllocInfo::Spilled);
- // Let Offset be the offset of the value from %fp.
- int Offset = Source.Placement - 2047;
- // Construct add %fp, <OFFSET>, <DESTREG>
- mvec.push_back (BuildMI (V9::ADDi, 3).addReg (FramePtrReg)
- .addSImm (Offset).addReg (PointerReg, MOTy::Def));
-}
-#endif
-
/// Insert the appropriate machine instruction(s) that copies the value in
/// Source to the location specified by Target, at the beginning of B. Note
/// that the current implementation is SPARC-specific.
More information about the llvm-commits
mailing list