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)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 1 Nov 2011 04:49:29 +0000 (04:49 +0000)
commit049260d9e2f72d650d97167e1ab451384e32b014
treeb7f75e895da2bcbcdbb30f9966486e8c1d672ce1
parent597362a54bf4bb8de5538b4a1d97c618b18a023c
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