[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Thu Oct 21 10:48:21 PDT 2004



Changes in directory reopt/lib/LightWtProfiling:

UnpackTraceFunction.cpp updated: 1.115 -> 1.116
---
Log message:

explain getRealRegType


---
Diffs of the changes:  (+7 -0)

Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.115 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.116
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.115	Fri Oct 15 00:25:59 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp	Thu Oct 21 12:48:10 2004
@@ -192,6 +192,13 @@
   std::cerr << " in TraceFn\n";
 }
 
+/// getRealRegType - This tries to guess whether we are supposed to save a
+/// FP double- or single-precision value based on what we know of the register
+/// usage in the function so far. If we are looking at a function where an
+/// even-numbered FP register is used and the next (odd) FP register is not,
+/// then we assume a double is allocated to the 64-bit slot given by the
+/// even number.
+///
 unsigned UnpackTraceFunction::getRealRegType (unsigned R) const {
   const SparcV9RegInfo &TRI = *TM->getRegInfo ();
   unsigned rawRegType = TRI.getRegType (R);






More information about the llvm-commits mailing list