summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PeepholeOptimizer.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-04-01 18:50:30 +0000
committerHal Finkel <hfinkel@anl.gov>2014-04-01 18:50:30 +0000
commit6386cb8d4d3b5def4c486ed5a63c17db45444a55 (patch)
tree90c45b372499ea12e29cf11a3071051a12213a12 /llvm/lib/CodeGen/PeepholeOptimizer.cpp
parentb4e001cc818257b771ab4b743fa89266de14bee9 (diff)
downloadbcm5719-llvm-6386cb8d4d3b5def4c486ed5a63c17db45444a55.tar.gz
bcm5719-llvm-6386cb8d4d3b5def4c486ed5a63c17db45444a55.zip
Add some additional fields to TTI::UnrollingPreferences
In preparation for an upcoming commit implementing unrolling preferences for x86, this adds additional fields to the UnrollingPreferences structure: - PartialThreshold and PartialOptSizeThreshold - Like Threshold and OptSizeThreshold, but used when not fully unrolling. These are necessary because we need different thresholds for full unrolling from those used when partially unrolling (the full unrolling thresholds are generally going to be larger). - MaxCount - A cap on the unrolling factor when partially unrolling. This can be used by a target to prevent the unrolled loop from exceeding some resource limit independent of the loop size (such as number of branches). There should be no functionality change for any in-tree targets. llvm-svn: 205347
Diffstat (limited to 'llvm/lib/CodeGen/PeepholeOptimizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud