Fix a really annoying "bug" introduced in r165941. The change from that
authorChandler Carruth <chandlerc@gmail.com>
Wed, 17 Oct 2012 07:22:16 +0000 (07:22 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 17 Oct 2012 07:22:16 +0000 (07:22 +0000)
commit40617f593edf385e7bd47c71afbde9898ba0cec3
tree5581a645595aa3a572569055fd88e01998d448b2
parent3440ecaae36cb8a3129c6f736ba312f08b424e85
Fix a really annoying "bug" introduced in r165941. The change from that
revision makes no sense. We cannot use the address space of the *post
indexed* type to conclude anything about a *pre indexed* pointer type's
size. More importantly, this index can never be over a pointer. We are
indexing over arrays and vectors here.

Of course, I have no test case here. Neither did the original patch. =/

llvm-svn: 166091
llvm/lib/Transforms/Scalar/SROA.cpp