[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervals.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Mon Feb 2 14:31:06 PST 2004
Changes in directory llvm/lib/CodeGen:
LiveIntervals.cpp updated: 1.43 -> 1.44
---
Log message:
Should be more careful. The previously applied change made all counts
outside of loops = 0.
---
Diffs of the changes: (+6 -10)
Index: llvm/lib/CodeGen/LiveIntervals.cpp
diff -u llvm/lib/CodeGen/LiveIntervals.cpp:1.43 llvm/lib/CodeGen/LiveIntervals.cpp:1.44
--- llvm/lib/CodeGen/LiveIntervals.cpp:1.43 Sun Feb 1 10:13:05 2004
+++ llvm/lib/CodeGen/LiveIntervals.cpp Mon Feb 2 14:29:57 2004
@@ -109,17 +109,13 @@
const MachineBasicBlock* mbb = mbbi;
unsigned loopDepth = loopInfo.getLoopDepth(mbb->getBasicBlock());
- if (loopDepth) {
- for (MachineBasicBlock::const_iterator mii = mbb->begin(),
- mie = mbb->end(); mii != mie; ++mii) {
- MachineInstr* mi = *mii;
-
- for (int i = mi->getNumOperands() - 1; i >= 0; --i) {
- MachineOperand& mop = mi->getOperand(i);
-
- if (!mop.isVirtualRegister())
- continue;
+ for (MachineBasicBlock::const_iterator mii = mbb->begin(),
+ mie = mbb->end(); mii != mie; ++mii) {
+ MachineInstr* mi = *mii;
+ for (int i = mi->getNumOperands() - 1; i >= 0; --i) {
+ MachineOperand& mop = mi->getOperand(i);
+ if (mop.isVirtualRegister()) {
unsigned reg = mop.getAllocatedRegNum();
Reg2IntervalMap::iterator r2iit = r2iMap_.find(reg);
assert(r2iit != r2iMap_.end());
More information about the llvm-commits
mailing list