- Insert new instructions before DomBlock's terminator,
authorChris Lattner <sabre@nondot.org>
Tue, 14 Dec 2010 08:46:09 +0000 (08:46 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 14 Dec 2010 08:46:09 +0000 (08:46 +0000)
commit3aff13b82a579e910420b6c040f3e85c99110e15
tree20d2a32e2bbbb9fe6f078343569a3ee138194a46
parent60d410d7bb2eb11f36a004237e5948ffc5aff5a6
 - Insert new instructions before DomBlock's terminator,
   which is simpler than finding a place to insert in BB.
 - Don't perform the 'if condition hoisting' xform on certain
   i1 PHIs, as it interferes with switch formation.

This re-fixes "example 7", without breaking the world hopefully.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121764 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/PhiEliminate.ll
test/Transforms/SimplifyCFG/switch_create.ll