Reapply [BranchFolding] Restrict tail merging loop blocks after MBP
authorHaicheng Wu <haicheng@codeaurora.org>
Fri, 12 Aug 2016 23:13:38 +0000 (23:13 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Fri, 12 Aug 2016 23:13:38 +0000 (23:13 +0000)
commit7c4535d1e74a2b79371720e57de72020ea826f46
tree221978d868a5b3728a858368e95f6a95864be626
parent2868fa171a35ebe9b8f4462004ed1bf359b86dba
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.

llvm-svn: 278575
llvm/lib/CodeGen/BranchFolding.cpp
llvm/test/CodeGen/ARM/arm-and-tst-peephole.ll
llvm/test/CodeGen/X86/tail-merge-after-mbp.ll [new file with mode: 0644]