[LV] Move reduction PHI node fixup to VPlan::execute (NFC).
authorFlorian Hahn <flo@fhahn.com>
Fri, 6 Aug 2021 07:12:54 +0000 (08:12 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 6 Aug 2021 07:29:20 +0000 (08:29 +0100)
commit3e58dd19dfa3c2537c3168a4885a5d757b3f1a6a
tree3c48ba5e1b3b40a68fd600b1c6aa4cec44656ad1
parent835cbfa8cf6330e31498f751baae3df83eab076a
[LV] Move reduction PHI node fixup to VPlan::execute (NFC).

All information to fix-up the reduction phi nodes in the vectorized loop
is available in VPlan now. This patch moves the code to do so, to make
this clearer. Fixing up the loop exit value still relies on other
information and remains outside of VPlan for now.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D100113
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.cpp