LoopVectorize: Look for consecutive acces in GEPs with trailing zero indices
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 1 Nov 2013 14:09:50 +0000 (14:09 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 1 Nov 2013 14:09:50 +0000 (14:09 +0000)
commit7208b0763c9fca2c6364c642d28fd014a496cc37
tree1dc0c78f1ac0c28e9bff57c26e8cdb698961b489
parent6186de5c54b580414b2d162e0f335b62b3d9812c
LoopVectorize: Look for consecutive acces in GEPs with trailing zero indices

If we have a pointer to a single-element struct we can still build wide loads
and stores to it (if there is no padding).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193860 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/struct_access.ll