Don't try to pull vector bitcasts that change the number of elements through
commitab789db0b9cdf0e4c0b5ac2253ab8ec61cd0a7e4
authorNick Lewycky <nicholas@mxc.ca>
Fri, 21 Jan 2011 02:30:43 +0000 (21 02:30 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 21 Jan 2011 02:30:43 +0000 (21 02:30 +0000)
treed09b0d843a3bfc9fae85451466cdbecc46b3daa7
parenta4d4431b28f78e1ec151eeeea235bb93e7d6ee69
Don't try to pull vector bitcasts that change the number of elements through
a select. A vector select is pairwise on each element so we'd need a new
condition with the right number of elements to select on. Fixes PR8994.

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