]> granicus.if.org Git - llvm/commit
Merging r278575 (with changes to the test):
authorHans Wennborg <hans@hanshq.net>
Tue, 16 Aug 2016 17:51:12 +0000 (17:51 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 16 Aug 2016 17:51:12 +0000 (17:51 +0000)
commit56dbbe30a2dbfe02e82e32b59beae70b5e0eea34
treeb0df86a0d1e9bc3aad508910355d0f3171335830
parente4ed2c645b78e91f1a6294529226fce4b97632f5
Merging r278575 (with changes to the test):
------------------------------------------------------------------------
r278575 | haicheng | 2016-08-12 16:13:38 -0700 (Fri, 12 Aug 2016) | 6 lines

Reapply [BranchFolding] Restrict tail merging loop blocks after MBP

Fixed a bug in the test case.

To fix PR28104, this patch restricts tail merging to blocks that belong to the
same loop after MBP.
------------------------------------------------------------------------

I had to adjust the test as it wasn't passing on the branch, presumably
due to different machine block placement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_39@278827 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BranchFolding.cpp
test/CodeGen/ARM/arm-and-tst-peephole.ll
test/CodeGen/X86/tail-merge-after-mbp.ll [new file with mode: 0644]