[BranchFolding] Restrict tail merging loop blocks after MBP
authorHaicheng Wu <haicheng@codeaurora.org>
Fri, 12 Aug 2016 03:30:23 +0000 (03:30 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Fri, 12 Aug 2016 03:30:23 +0000 (03:30 +0000)
commitea0237205990c6652929331cf07702add46f377d
tree8c13ea08a1f110b004eceb5860446fee4786e33d
parent7ad9d6d2f0a0bf472455ccdc41e919f4165a7e1f
[BranchFolding] Restrict tail merging loop blocks after MBP

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

Differential Revision: https://reviews.llvm.org/D23191

llvm-svn: 278463
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]