[LLE] Add missing check for unit stride
authorAdam Nemet <anemet@apple.com>
Wed, 9 Mar 2016 20:47:55 +0000 (20:47 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 9 Mar 2016 20:47:55 +0000 (20:47 +0000)
commit660748ca8c70e3afd8414ff45ef99feeca3f3d3c
tree80bbb245e18cc7916629cb8afe62290d899cea67
parentc43ec673b9b579572af5eb414a335d7d4f2d929f
[LLE] Add missing check for unit stride

I somehow missed this.  The case in GCC (global_alloc) was similar to
the new testcase except it had an array of structs rather than a two
dimensional array.

Fixes RP26885.

llvm-svn: 263058
llvm/include/llvm/Analysis/LoopAccessAnalysis.h
llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
llvm/test/Transforms/LoopLoadElim/non-consecutive.ll [new file with mode: 0644]