diff options
| author | Owen Anderson <resistor@mac.com> | 2008-06-25 23:39:39 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-06-25 23:39:39 +0000 |
| commit | 5b691fc253bcd96e88601ef93115cd926d476faf (patch) | |
| tree | a61f7bd75b5e1c40b9dee284187b650b4bf42d38 /include | |
| parent | 2d70201e8e52f22f05c384fe336dc60d0b7134af (diff) | |
| download | external_llvm-5b691fc253bcd96e88601ef93115cd926d476faf.zip external_llvm-5b691fc253bcd96e88601ef93115cd926d476faf.tar.gz external_llvm-5b691fc253bcd96e88601ef93115cd926d476faf.tar.bz2 | |
Remember which MachineOperand we were processing, so we don't have to scan the list to find it again later.
This speeds up live intervals from 0.37s to 0.30s on instcombine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 37acd74..6a2fd9e 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -328,20 +328,20 @@ namespace llvm { /// handleVirtualRegisterDef) void handleRegisterDef(MachineBasicBlock *MBB, MachineBasicBlock::iterator MI, unsigned MIIdx, - unsigned reg); + MachineOperand& MO); /// handleVirtualRegisterDef - update intervals for a virtual /// register def void handleVirtualRegisterDef(MachineBasicBlock *MBB, MachineBasicBlock::iterator MI, - unsigned MIIdx, + unsigned MIIdx, MachineOperand& MO, LiveInterval& interval); /// handlePhysicalRegisterDef - update intervals for a physical register /// def. void handlePhysicalRegisterDef(MachineBasicBlock* mbb, MachineBasicBlock::iterator mi, - unsigned MIIdx, + unsigned MIIdx, MachineOperand& MO, LiveInterval &interval, MachineInstr *CopyMI); |
