diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-23 18:38:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-23 18:38:52 +0000 |
commit | 4dc54ae0d950764443ee6a475cc9212d37074747 (patch) | |
tree | 111644047a3b920e8d142e14118ca793d9778256 | |
parent | ebd7e6c54dce754a88d8f38df4ac2f388f35435e (diff) |
Speedup debug builds a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15137 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 5 | ||||
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 4e2cbeba0b..bb324e3c79 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -95,8 +95,9 @@ namespace llvm { 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 diff --git a/lib/CodeGen/LiveIntervalAnalysis.h b/lib/CodeGen/LiveIntervalAnalysis.h index 4e2cbeba0b..bb324e3c79 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.h +++ b/lib/CodeGen/LiveIntervalAnalysis.h @@ -95,8 +95,9 @@ namespace llvm { 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 |