diff options
author | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2016-06-21 11:32:01 +0000 |
---|---|---|
committer | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2016-06-21 11:32:01 +0000 |
commit | 9823c995bc0ef81f013cdc0d31af0f1cb2aab886 (patch) | |
tree | 9bdfe5a2a5e743ab948d0fe8ccb6bbf25bd77546 /llvm/lib/Support/ToolOutputFile.cpp | |
parent | d1188f757cc617849357b76a24c4b4e4ddf42cbf (diff) | |
download | bcm5719-llvm-9823c995bc0ef81f013cdc0d31af0f1cb2aab886.tar.gz bcm5719-llvm-9823c995bc0ef81f013cdc0d31af0f1cb2aab886.zip |
Fixed consecutive memory access detection in Loop Vectorizer.
It did not handle correctly cases without GEP.
The following loop wasn't vectorized:
for (int i=0; i<len; i++)
*to++ = *from++;
I use getPtrStride() to find Stride for memory access and return 0 is the Stride is not 1 or -1.
Differential revision: http://reviews.llvm.org/D20789
llvm-svn: 273257
Diffstat (limited to 'llvm/lib/Support/ToolOutputFile.cpp')
0 files changed, 0 insertions, 0 deletions