diff options
author | Chris Lattner <sabre@nondot.org> | 2006-09-01 04:02:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-09-01 04:02:42 +0000 |
commit | a2a8f0919d6d000e894f31b8cb416b4fbe17bb07 (patch) | |
tree | bd503d998a634c009b34a508dead1f5fe6181ec1 /include/llvm | |
parent | 7218c288223c9d1d8eb4d8c1c2c0e9d212cd3e46 (diff) | |
download | llvm-a2a8f0919d6d000e894f31b8cb416b4fbe17bb07.tar.gz llvm-a2a8f0919d6d000e894f31b8cb416b4fbe17bb07.tar.bz2 llvm-a2a8f0919d6d000e894f31b8cb416b4fbe17bb07.tar.xz |
Iterative coallescing doesn't buy us anything (we get identical results on
crafty with and without it). Removing it speeds up live intervals 6%.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 6834fc272a..4420e059ea 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -53,17 +53,6 @@ namespace llvm { std::vector<bool> allocatableRegs_; public: - struct CopyRec { - MachineInstr *MI; - unsigned SrcReg, DstReg; - }; - CopyRec getCopyRec(MachineInstr *MI, unsigned SrcReg, unsigned DstReg) { - CopyRec R; - R.MI = MI; - R.SrcReg = SrcReg; - R.DstReg = DstReg; - return R; - } struct InstrSlots { enum { LOAD = 0, @@ -161,10 +150,8 @@ namespace llvm { /// joinIntervals - join compatible live intervals void joinIntervals(); - /// CopyCoallesceInMBB - Coallsece copies in the specified MBB, putting - /// copies that cannot yet be coallesced into the "TryAgain" list. - void CopyCoallesceInMBB(MachineBasicBlock *MBB, - std::vector<CopyRec> &TryAgain); + /// CopyCoallesceInMBB - Coallsece copies in the specified MBB. + void CopyCoallesceInMBB(MachineBasicBlock *MBB); /// JoinCopy - Attempt to join intervals corresponding to SrcReg/DstReg, /// which are the src/dst of the copy instruction CopyMI. This returns true |