Teach an instcombine to not pull trunc instructions through PHI nodes
authorChris Lattner <sabre@nondot.org>
Sun, 8 Nov 2009 21:20:06 +0000 (21:20 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 8 Nov 2009 21:20:06 +0000 (21:20 +0000)
commitbf382b5f74cb5e0a50385867ea3f895ae2715696
tree3b21ee826210f9e65320f834639ca261c3a87ac9
parent68d29d09c6dce41777120cb7beb25549eb100f68
Teach an instcombine to not pull trunc instructions through PHI nodes
when both the source and dest are illegal types, since it would cause
the phi to grow (for example, we shouldn't transform test14b's phi to
a phi on i320).  This fixes an infinite loop on i686 bootstrap with
phi slicing turned on, so turn it back on.

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