[PATCH] D39346: [LV] [ScalarEvolution] Fix PR34965 - Cache pointer stride information before LV code gen

Diego Caballero via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 3 13:18:01 PDT 2017


dcaballe updated this revision to Diff 121535.
dcaballe added a reviewer: rengolin.
dcaballe added a comment.
Herald added a subscriber: bollu.

I implemented a new fix where the return value of Legal->isConsecutivePtr() is collected just before the original loop is modified. This approach seems simpler and less invasive than the one described in my previous comment.

Thanks!


https://reviews.llvm.org/D39346

Files:
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/consecutive-ptr-cg-bug.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39346.121535.patch
Type: text/x-patch
Size: 5194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171103/6a8c4a6c/attachment.bin>


More information about the llvm-commits mailing list