[all-commits] [llvm/llvm-project] ce46e1: [NFC][SLP] Cleanup: Simplify traversal loop in SLP...
vptest1 via All-commits
all-commits at lists.llvm.org
Wed May 3 12:49:35 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ce46e1aa765f7e84dac382bd9e1d7ca5f321664a
https://github.com/llvm/llvm-project/commit/ce46e1aa765f7e84dac382bd9e1d7ca5f321664a
Author: Vasileios Porpodas <vporpodas at google.com>
Date: 2023-05-03 (Wed, 03 May 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Log Message:
-----------
[NFC][SLP] Cleanup: Simplify traversal loop in SLPVectorizerPass::vectorizeHorReduction().
This includes a couple of changes:
1. Moves the code that changes the root node out of the `TryToReduce` lambda and out of the traversal loop.
2. Since that code moved, there isn't much left in `TryToReduce` so the code was inlined.
3. The phi node variable `P` was also being used as a flag that turns on/off the exploration of operands as new seeds. This patch uses a new variable `TryOperandsAsNewSeeds` for this.
4. Simplifies the code executed when vectorization fails.
The logic of the code should be identical to the original, but I may be missing something not caught by tests.
Differential Revision: https://reviews.llvm.org/D149627
More information about the All-commits
mailing list