aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorJohn Brawn <john.brawn@arm.com>2017-06-28 14:11:15 +0000
committerJohn Brawn <john.brawn@arm.com>2017-06-28 14:11:15 +0000
commit75d76e5e956c75fc524253d57153e40836d3e6d5 (patch)
tree67844a7a4f3db463b3d3abbbb476d2e64c04c14a /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent48b30c3d55b450f841b222394c840da12f0329a2 (diff)
downloadllvm-75d76e5e956c75fc524253d57153e40836d3e6d5.zip
llvm-75d76e5e956c75fc524253d57153e40836d3e6d5.tar.gz
llvm-75d76e5e956c75fc524253d57153e40836d3e6d5.tar.bz2
[ARM] Improve if-conversion for M-class CPUs without branch predictors
The current heuristic in isProfitableToIfCvt assumes we have a branch predictor, and so gives the wrong answer in some cases when we don't. This patch adds a subtarget feature to indicate that a subtarget has no branch predictor, and changes the heuristic in isProfitableToiIfCvt when it's present. This gives a slight overall improvement in a set of embedded benchmarks on Cortex-M4 and Cortex-M33. Differential Revision: https://reviews.llvm.org/D34398 llvm-svn: 306547
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions