ConstantHoisting: We can't insert instructions directly in front of a PHI node.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 27 Jan 2014 13:11:43 +0000 (13:11 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 27 Jan 2014 13:11:43 +0000 (13:11 +0000)
commit08aa38d39b870d7b2b5774740fb9e9d3a218b47a
tree8fa072e7fa2ea6af21c8fdc0f6f0bd0bd510c419
parent3202becf5ea308afcfe09f7f65fbb7bf58db46b5
ConstantHoisting: We can't insert instructions directly in front of a PHI node.

Insert before the terminating instruction of the dominating block instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200218 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ConstantHoisting.cpp
test/Transforms/ConstantHoisting/X86/lit.local.cfg [new file with mode: 0644]
test/Transforms/ConstantHoisting/X86/phi.ll [new file with mode: 0644]