[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri May 21 02:59:01 PDT 2004
Changes in directory reopt/lib/LightWtProfiling:
UnpackTraceFunction.cpp updated: 1.63 -> 1.64
---
Log message:
Don't worry about saving or restoring %g0.
Don't print out a line of spam for every piece of register allocator
state we scan through.
---
Diffs of the changes: (+2 -3)
Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.63 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.64
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.63 Thu May 20 13:05:22 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp Fri May 21 02:58:43 2004
@@ -212,8 +212,8 @@
} else if (TRI.getRegType(regNo) == SparcV9RegInfo::FloatCCRegType
|| TRI.getRegType(regNo) == SparcV9RegInfo::SpecialRegType) {
floatCCRegSeen = true;
- } else {
- regsUsed.insert (MO.getReg ());
+ } else if (regNo != SparcV9::g0) { // Ignore defs of the zero register
+ regsUsed.insert (regNo);
}
}
}
@@ -456,7 +456,6 @@
<< " tuples to search.\n");
for (unsigned i = 0, s = FState.size (); i < s; ++i) {
AllocInfo &T = FState[i];
- DEBUG(std::cerr << "Considering: " << T << "\n");
if (T.Instruction == InstructionKey && T.Operand == OperandKey)
return T;
}
More information about the llvm-commits
mailing list