OSDN Git Service

Add a target hook to allow changing the tail duplication limit based on the
authorBob Wilson <bob.wilson@apple.com>
Wed, 18 Nov 2009 03:34:27 +0000 (03:34 +0000)
committerBob Wilson <bob.wilson@apple.com>
Wed, 18 Nov 2009 03:34:27 +0000 (03:34 +0000)
commit834b08af8d3d8fc6c76ac6ca40674565689e8d7f
tree54f4512d0d88c69265505976b1d17cdd845a2fb9
parent5eea34267376e76aceb53b6c3dfead816021258f
Add a target hook to allow changing the tail duplication limit based on the
contents of the block to be duplicated.  Use this for ARM Cortex A8/9 to
be more aggressive tail duplicating indirect branches, since it makes it
much more likely that they will be predicted in the branch target buffer.
Testcase coming soon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89187 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/BranchFolding.cpp
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMBaseInstrInfo.h
lib/Target/ARM/ARMSubtarget.cpp
lib/Target/ARM/ARMSubtarget.h