[llvm-dev] unable to vectorize copy statement

hameeza ahmed via llvm-dev llvm-dev at lists.llvm.org
Fri Nov 10 13:24:55 PST 2017

I am trying to vectorize copy statement in LLVM but unable to do so why? my
code is follows:

int main()


int c[2048], a[2048];

for (int j=0; j<2048; j++)

  { a[j]=2;
  c[j] = a[j];


the command is follows:
opt  -S -O3 -force-vector-width=64 s.ll -o s_o3.ll

how to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171111/063bb9d4/attachment.html>

More information about the llvm-dev mailing list