summaryrefslogtreecommitdiff
path: root/tools/lto
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-04-16 09:31:23 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-04-16 09:31:23 +0000
commit16295fc20b68f9a9318cada4e4d96e964b1cdd7e (patch)
tree56ca18ae1e43f574477b2fbd936310e1b91f15b3 /tools/lto
parent246de858e37a989a9cdf9b80d7434453b2c52e70 (diff)
downloadllvm-16295fc20b68f9a9318cada4e4d96e964b1cdd7e.tar.gz
llvm-16295fc20b68f9a9318cada4e4d96e964b1cdd7e.tar.bz2
llvm-16295fc20b68f9a9318cada4e4d96e964b1cdd7e.tar.xz
Tweak the loop rotation logic to check whether the loop is naturally
laid out in a form with a fallthrough into the header and a fallthrough out of the bottom. In that case, leave the loop alone because any rotation will introduce unnecessary branches. If either side looks like it will require an explicit branch, then the rotation won't add any, do it to ensure the branch occurs outside of the loop (if possible) and maximize the benefit of the fallthrough in the bottom. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
0 files changed, 0 insertions, 0 deletions