[llvm-commits] CVS: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Sat Feb 14 16:20:02 PST 2004
Changes in directory reopt/lib/LightWtProfiling:
UnpackTraceFunction.cpp updated: 1.37 -> 1.38
---
Log message:
Perform ilistification for Sparc backend-specific stuff in UnpackTraceFunction.
---
Diffs of the changes: (+3 -5)
Index: reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp
diff -u reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.37 reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.38
--- reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp:1.37 Fri Jan 30 15:54:10 2004
+++ reopt/lib/LightWtProfiling/UnpackTraceFunction.cpp Sat Feb 14 16:19:25 2004
@@ -116,9 +116,9 @@
const MachineInstr *SparcReoptInfo::containsReturnInstr (MachineBasicBlock &B) {
for (MachineBasicBlock::const_reverse_iterator i = B.rbegin (),
e = B.rend (); i != e; ++i) {
- const MachineInstr *MI = *i;
- if (MI->getOpcode () == V9::JMPLRETi)
- return MI;
+ const MachineInstr &MI = *i;
+ if (MI.getOpcode () == V9::JMPLRETi)
+ return &*i;
}
return 0;
}
@@ -349,9 +349,7 @@
// Erase the contents of MBB.
while (!MBB.empty ()) {
MachineBasicBlock::iterator MBBI = MBB.begin ();
- MachineInstr *MI = *MBBI;
MBB.erase (MBBI);
- delete MI;
}
// Insert copies from each live-out variable's reg. in the trace
// to its reg. in the matrix function.
More information about the llvm-commits
mailing list