Remove isProfitableToDuplicateIndirectBranch target hook. It is profitable
authorBob Wilson <bob.wilson@apple.com>
Mon, 30 Nov 2009 18:35:03 +0000 (18:35 +0000)
committerBob Wilson <bob.wilson@apple.com>
Mon, 30 Nov 2009 18:35:03 +0000 (18:35 +0000)
commit15217e63bce6c161b355b63d6496c7c327d15817
tree79b92778bd4803ab19b5437742f094c8a3c669e7
parentafa1df467b04182c959e6c3031df5377a0062153
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90144 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/TailDuplication.cpp
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMBaseInstrInfo.h
lib/Target/ARM/ARMSubtarget.cpp
lib/Target/ARM/ARMSubtarget.h
lib/Target/PowerPC/PPCInstrInfo.h
lib/Target/X86/X86InstrInfo.h