Add getUnrollingPreferences to TTI
authorHal Finkel <hfinkel@anl.gov>
Thu, 29 Aug 2013 03:29:57 +0000 (03:29 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 29 Aug 2013 03:29:57 +0000 (03:29 +0000)
commit32f258b96a723b771eb44a2c0689b8bf4dd871ee
tree0a48bd05ecababcbe58e27cdd0dd15ab16c6f1f4
parent253acef7a5ea2fbba7848d2257ae3cce2ea02ce0
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@189565 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfo.h
lib/Analysis/TargetTransformInfo.cpp
lib/CodeGen/BasicTargetTransformInfo.cpp
lib/Transforms/Scalar/LoopUnrollPass.cpp