OSDN Git Service

Make sure we use the right insertion point when instcombine replaces a PHI with anoth...
authorEli Friedman <eli.friedman@gmail.com>
Tue, 1 Nov 2011 04:49:29 +0000 (04:49 +0000)
committerStephen Hines <srhines@google.com>
Mon, 14 Nov 2011 17:11:33 +0000 (09:11 -0800)
commita3918083dcff1a02c4d31dd9002d8c33ec20ca07
treea331b401723f4b27f1a62005fdd1941662da6ab6
parent76550c7953e46009cc841e2c339a1db1ae62e912
Make sure we use the right insertion point when instcombine replaces a PHI with another instruction.  (Specifically, don't insert an arbitrary instruction before a PHI.)  Fixes PR11275.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143437 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/crash.ll