InstCombine: Harden code to work with vectors of pointers and simplify it a bit.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 5 Feb 2013 19:21:56 +0000 (19:21 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 5 Feb 2013 19:21:56 +0000 (19:21 +0000)
commit1018fa256d5b5a134c06dac76d1d285e04562187
tree2173f385cb4dff6d0bf4ffd491b44be088f631a2
parent1d3d2c57f55e04197efe15b293c783fe879c2551
InstCombine: Harden code to work with vectors of pointers and simplify it a bit.

Found by running instcombine on a fabricated test case for the constant folder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174430 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCasts.cpp
test/Transforms/InstCombine/ptr-int-cast.ll