[PATCH] D31910: [LV] Fix logic to extract correct element in first order recurrences

Anna Thomas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 12:53:43 PDT 2017


anna updated this revision to Diff 94877.
anna added a comment.

Updated diff to avoid vectorizing first order recurrences when phi used outside the loop
and the phi is not part of the loop terminating condition.
Based on Mathew's comments above, we have a better way to fix this rather than limiting the loop trip
count in the vectorized case.


https://reviews.llvm.org/D31910

Files:
  lib/Transforms/Utils/LoopUtils.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/first-order-recurrence.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31910.94877.patch
Type: text/x-patch
Size: 4797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170411/d038db7f/attachment.bin>


More information about the llvm-commits mailing list