Add getUnrollingPreferences to TTI
authorHal Finkel <hfinkel@anl.gov>
Wed, 11 Sep 2013 19:25:43 +0000 (19:25 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 11 Sep 2013 19:25:43 +0000 (19:25 +0000)
commit4f7e2c38e864d7eaeb407ac501478e9579624d1b
treea795fc243082f1ed166655d8c124d3509e5cddf1
parent8822f48f72f5b0ed8a265d535dc146d1ebef721f
Add getUnrollingPreferences to TTI

Allow targets to customize the default behavior of the generic loop unrolling
transformation. This will be used by the PowerPC backend when targeting the A2
core (which is in-order with a deep pipeline), and using more aggressive
defaults is important.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190542 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfo.h
lib/Analysis/TargetTransformInfo.cpp
lib/CodeGen/BasicTargetTransformInfo.cpp
lib/Transforms/Scalar/LoopUnrollPass.cpp