[PATCH] D18940: Loop vectorization with uniform load

Elena Demikhovsky via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 11 12:00:13 PDT 2016


delena added a comment.

> Can you please elaborate, how was the cost computed before?


25 for VF=2, 51 for VF=4 and 103 for VF=8

> Thus the cost is really zero.


I know that the actual cost is 0, but I can't put 0 when the load is inside the loop.

> the uniform load becomes loop-invariant after vectorization and a subsequent LICM will hoist it out of the loop


Do you know why the load wasn't hoisted before vectorization?


Repository:
  rL LLVM

http://reviews.llvm.org/D18940





More information about the llvm-commits mailing list