]> granicus.if.org Git - llvm/commit
[AArch64] Simplify MacroFusion
authorEvandro Menezes <e.menezes@samsung.com>
Tue, 11 Apr 2017 19:13:11 +0000 (19:13 +0000)
committerEvandro Menezes <e.menezes@samsung.com>
Tue, 11 Apr 2017 19:13:11 +0000 (19:13 +0000)
commit4e34a0eb576a38011998e67a244c6e9b9c914fde
treecfa96e9437688bdc50d5725162ca7790a82f8f80
parentd7dec945d06e8e4f95637d8e9add77bf383a2cbc
[AArch64] Simplify MacroFusion

This patch assumes that the dependents to be scanned for the ExitSU are its
predecessors; otherwise, the successors of the instr are scanned.

Furthermore, sometimes the ExitSU was being fused twice, since it may be
fused once when scanning the successors from the beginning of the BB and
then again when scanning the predecessors of ExitSU.  Thus, when scanning
the successors of an instr, skip the ExitSU.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299974 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64MacroFusion.cpp