summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderDecl.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-03 14:35:47 +0000
committerDan Gohman <gohman@apple.com>2010-05-03 14:35:47 +0000
commit2ad68de4aa879d4ebd2ddfc1943b06038e31552e (patch)
tree1a438fdb36f1de61c768dbdae0c825e46457de42 /clang/lib/Frontend/PCHReaderDecl.cpp
parent73c8145505c2ff5898572fd56b74e6d1274609d9 (diff)
downloadbcm5719-llvm-2ad68de4aa879d4ebd2ddfc1943b06038e31552e.tar.gz
bcm5719-llvm-2ad68de4aa879d4ebd2ddfc1943b06038e31552e.zip
Fix a bug which prevented tail merging of return instructions in
beneficial cases. See the changes in test/CodeGen/X86/tail-opts.ll and test/CodeGen/ARM/ifcvt2.ll for details. The fix is to change HashEndOfMBB to hash at most one instruction, instead of trying to apply heuristics about when it will be profitable to consider more than one instruction. The regular tail-merging heuristics are already prepared to handle the same cases, and they're more precise. Also, make test/CodeGen/ARM/ifcvt5.ll and test/CodeGen/Thumb2/thumb2-branch.ll slightly more complex so that they continue to test what they're intended to test. And, this eliminates the problem in test/CodeGen/Thumb2/2009-10-15-ITBlockBranch.ll, the testcase from PR5204. Update it accordingly. llvm-svn: 102907
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud