[PATCH] D30755: [LV] Refactor cross-iteration phi's back-patching; NFC

Gil Rapaport via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 8 12:57:22 PST 2017


gilr created this revision.
Herald added a subscriber: mzolotukhin.

This patch refactors the PHisToFix loop as follows:

- The loop itself now resides in its own method.
- The new method iterates on scalar-loop's header; the PHIsToFix map formerly propagated as an output parameter and filled during phi widening is removed.
- The code handling reductions is moved into its own method, similar to the existing fixFirstOrderRecurrence().

Follows https://reviews.llvm.org/D28975 and its tentative breakdown.

Joint work with Ayal.


https://reviews.llvm.org/D30755

Files:
  lib/Transforms/Vectorize/LoopVectorize.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30755.91014.patch
Type: text/x-patch
Size: 24923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170308/5699ddc9/attachment.bin>


More information about the llvm-commits mailing list