diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2009-11-30 18:35:03 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2009-11-30 18:35:03 +0000 |
| commit | 505ddaa4dc76317435eec4bae666b30761d3d11e (patch) | |
| tree | 5e5e62723f53bde1d30bb345559151ef8540d858 /llvm/lib/Target/X86 | |
| parent | 7bd1048f2663b64a6e414acd71810ccfa3d3a0ea (diff) | |
| download | bcm5719-llvm-505ddaa4dc76317435eec4bae666b30761d3d11e.tar.gz bcm5719-llvm-505ddaa4dc76317435eec4bae666b30761d3d11e.zip | |
Remove isProfitableToDuplicateIndirectBranch target hook. It is profitable
for all the processors where I have tried it, and even when it might not help
performance, the cost is quite low. The opportunities for duplicating
indirect branches are limited by other factors so code size does not change
much due to tail duplicating indirect branches aggressively.
llvm-svn: 90144
Diffstat (limited to 'llvm/lib/Target/X86')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.h b/llvm/lib/Target/X86/X86InstrInfo.h index 3d4c2f695d0..c6daa251430 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.h +++ b/llvm/lib/Target/X86/X86InstrInfo.h @@ -632,8 +632,6 @@ public: /// unsigned getGlobalBaseReg(MachineFunction *MF) const; - virtual bool isProfitableToDuplicateIndirectBranch() const { return true; } - private: MachineInstr* foldMemoryOperandImpl(MachineFunction &MF, MachineInstr* MI, |

