summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/Disassembler.cpp
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
commit8c74c7b1c67497e334095acd69da0e16e757df36 (patch)
tree3120b47bb808252666e25613ad19b2f1dcbf11a1 /llvm/tools/llvm-mc/Disassembler.cpp
parent13d16f3bf3f9097ed30f411f90397372c73e664b (diff)
downloadbcm5719-llvm-8c74c7b1c67497e334095acd69da0e16e757df36.tar.gz
bcm5719-llvm-8c74c7b1c67497e334095acd69da0e16e757df36.zip
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. llvm-svn: 154806
Diffstat (limited to 'llvm/tools/llvm-mc/Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud