]> granicus.if.org Git - llvm/commit
[LV] Refactor cross-iteration phi's back-patching; NFC
authorGil Rapaport <gil.rapaport@intel.com>
Tue, 14 Mar 2017 13:50:47 +0000 (13:50 +0000)
committerGil Rapaport <gil.rapaport@intel.com>
Tue, 14 Mar 2017 13:50:47 +0000 (13:50 +0000)
commita27a1f7795b36859be9789f846a29a24443c0b75
tree74733f107aa1c37ad2356cebe0d3d8ad0b1f4883
parent8f5c3210219d1487f9b510f80e49028e093d69f8
[LV] Refactor cross-iteration phi's back-patching; NFC

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().

Differential Revision: https://reviews.llvm.org/D30755

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297740 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp