[NFC][SLP] Cleanup: Moves code that changes the reduction root into a separate function.
authorVasileios Porpodas <vporpodas@google.com>
Thu, 27 Apr 2023 18:22:12 +0000 (11:22 -0700)
committerVasileios Porpodas <vporpodas@google.com>
Fri, 28 Apr 2023 17:05:32 +0000 (10:05 -0700)
commit92b2a266e99066a085aa9c371efe9ea13b0755cd
tree281c1561e144f07337eb8d2b0f9e54c0e7102f4a
parentd7bead833631486e337e541e692d9b4a1ca14edd
[NFC][SLP] Cleanup: Moves code that changes the reduction root into a separate function.

This makes `matchAssociativeReduction()` a bit simpler.

Differential Revision: https://reviews.llvm.org/D149452
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp