[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Apr 9 13:17:02 PDT 2004
Changes in directory reopt/lib/LightWtProfiling:
UnpackTraceFunction.cpp updated: 1.54 -> 1.55
---
Log message:
Shorten loop that builds regSet.
---
Diffs of the changes: (+4 -8)
Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.54 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.55
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.54 Fri Apr 9 13:04:29 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp Fri Apr 9 13:15:52 2004
@@ -205,16 +205,12 @@
// 1. Initialize regSet with the set of registers used in this function.
std::set<unsigned> regSet;
for (MachineFunction::iterator fi = MF.begin (), fe = MF.end ();
- fi != fe; ++fi) {
+ fi != fe; ++fi)
for (MachineBasicBlock::iterator bi = fi->begin (), be = fi->end ();
- bi != be; ++bi) {
- for (unsigned oi = 0, oe = bi->getNumOperands (); oi != oe; ++oi) {
- if (bi->getOperand (oi).isDef ()) {
+ bi != be; ++bi)
+ for (unsigned oi = 0, oe = bi->getNumOperands (); oi != oe; ++oi)
+ if (bi->getOperand (oi).isDef ())
regSet.insert (bi->getOperand (oi).getReg ());
- }
- }
- }
- }
DEBUG(std::cerr << "In rewriteProlog()...\n"
<< " static stack size is " << getStaticStackSize (MF)
More information about the llvm-commits
mailing list