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)
commite4778758731f906895d3857c6223fcae815dcb1b
tree10d78ecf8a40767498f30dbf441b9d746d1d0a8e
parent6031625b030e787765cf785dade970ac69050885
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.

llvm-svn: 174430
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/ptr-int-cast.ll