Fix 9173.
authorNadav Rotem <nadav.rotem@intel.com>
Fri, 11 Feb 2011 19:37:55 +0000 (19:37 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Fri, 11 Feb 2011 19:37:55 +0000 (19:37 +0000)
commitd2f27ead2d71afeee869cad8ae8a1c1dce7229cb
tree18e11bf523e403041aeaf6df2b7ff0a83e151121
parent5a4552ca4256461f402f9d7d2511e77c79316907
Fix 9173.

Add more folding patterns to constant expressions of vector selects and vector
bitcasts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125393 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/ConstantFold.cpp
test/Transforms/InstCombine/bitcast-vec-uniform.ll [new file with mode: 0644]
test/Transforms/InstCombine/fold-vector-select.ll [new file with mode: 0644]