Don't try to pull vector bitcasts that change the number of elements through
authorNick Lewycky <nicholas@mxc.ca>
Fri, 21 Jan 2011 02:30:43 +0000 (02:30 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 21 Jan 2011 02:30:43 +0000 (02:30 +0000)
commitacf4a7c0e6f6c88c6ee0201ecd81942e21adb023
treed09b0d843a3bfc9fae85451466cdbecc46b3daa7
parent7acdb4d237181976b04e72f6a6c329c3b2604440
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