]> granicus.if.org Git - llvm/commit
[GlobalISel] Insert translated switch icmp blocks after switch parent.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 15 Mar 2017 18:22:37 +0000 (18:22 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 15 Mar 2017 18:22:37 +0000 (18:22 +0000)
commit17931c83704a5e4c4b2b15bcdaa5e0a6925442c5
treebdc40593243b68237297d84f5697b914089a06f7
parentc0f82e4a517806d177d696b725025cbc6084b1ab
[GlobalISel] Insert translated switch icmp blocks after switch parent.

Now that we preserve the IR layout, we would end up with all the newly
synthesized switch comparison blocks at the end of the function.
Instead, use a hopefully more reasonable layout, with the comparison
blocks immediately following the switch comparison blocks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297869 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/IRTranslator.cpp
test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll