[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.h

Chris Lattner lattner at cs.uiuc.edu
Fri Jul 23 11:39:02 PDT 2004



Changes in directory llvm/lib/CodeGen:

LiveIntervalAnalysis.h updated: 1.33 -> 1.34

---
Log message:

Speedup debug builds a bit



---
Diffs of the changes:  (+3 -2)

Index: llvm/lib/CodeGen/LiveIntervalAnalysis.h
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.h:1.33 llvm/lib/CodeGen/LiveIntervalAnalysis.h:1.34
--- llvm/lib/CodeGen/LiveIntervalAnalysis.h:1.33	Fri Jul 23 12:56:30 2004
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.h	Fri Jul 23 13:38:52 2004
@@ -95,8 +95,9 @@
         virtual bool runOnMachineFunction(MachineFunction&);
 
         LiveInterval& getInterval(unsigned reg) {
-            assert(r2iMap_.count(reg)&& "Interval does not exist for register");
-            return *r2iMap_.find(reg)->second;
+          Reg2IntervalMap::iterator I = r2iMap_.find(reg);
+            assert(I != r2iMap_.end()&& "Interval does not exist for register");
+            return *I->second;
         }
 
         /// getInstructionIndex - returns the base index of instr





More information about the llvm-commits mailing list