[GlobalISel] Don't translate br to layout successor.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 21 Mar 2017 23:42:50 +0000 (23:42 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 21 Mar 2017 23:42:50 +0000 (23:42 +0000)
commite8e1fa3a7cf8a9500a39702cce71cde8aa2960f0
treec01a16b47e4494bcedf5435fcb63dcd93977ffa7
parentc8470e59bcbeb4bbf2a2e124cd376de7d64903e4
[GlobalISel] Don't translate br to layout successor.

MI can represent fallthrough to layout successor blocks, and our
post-isel representation uses that extensively.

We might as well use it too, to avoid translating and carrying along
unnecessary branches.

llvm-svn: 298459
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll