summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-23 18:38:52 +0000
committerChris Lattner <sabre@nondot.org>2004-07-23 18:38:52 +0000
commit4dc54ae0d950764443ee6a475cc9212d37074747 (patch)
tree111644047a3b920e8d142e14118ca793d9778256 /include/llvm/CodeGen/LiveIntervalAnalysis.h
parentebd7e6c54dce754a88d8f38df4ac2f388f35435e (diff)
downloadllvm-4dc54ae0d950764443ee6a475cc9212d37074747.tar.gz
llvm-4dc54ae0d950764443ee6a475cc9212d37074747.tar.bz2
llvm-4dc54ae0d950764443ee6a475cc9212d37074747.tar.xz
Speedup debug builds a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r--include/llvm/CodeGen/LiveIntervalAnalysis.h5
1 files changed, 3 insertions, 2 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