Recommit r158407: Allow SROA to look at a vector type and see if the offset is out...
authorPete Cooper <peter_cooper@apple.com>
Thu, 14 Jun 2012 23:53:53 +0000 (23:53 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 14 Jun 2012 23:53:53 +0000 (23:53 +0000)
commit6399b7c51076846942a0c05b4823ca9a8f55b5fc
treeae18eac91cfd886d7aa1fd095a40b8be503394c6
parent0397729d3b8da4208660a163d18296b1a3bd32b8
Recommit r158407: Allow SROA to look at a vector type and see if the offset is out of range to be replaced with a scalar access.  Now with additional fix and test for indexing into a vector inside a struct

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158479 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/2011-06-08-VectorExtractValue.ll