InstSimplify: stripAndComputeConstantOffsets can be called with vectors of pointers...
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 1 Feb 2013 15:21:10 +0000 (15:21 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 1 Feb 2013 15:21:10 +0000 (15:21 +0000)
commitd9f32c20da9de8798284a8007662c6557560c876
tree00e23e5da8922f3752751496b90f44a2865750e9
parent84d3239889c576029382c3165495e0c78b14e9eb
InstSimplify: stripAndComputeConstantOffsets can be called with vectors of pointers too.

Prepare it for vectors of pointers and handle simple cases. We don't handle
complicated cases because accumulateConstantOffset bails on pointer vectors.
Fixes selfhost on i386.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174179 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/ptr_diff.ll