[all-commits] [llvm/llvm-project] dae91f: [VPlan] Avoid VPTransformState::reset in fixReduct...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Sat Oct 7 15:26:07 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dae91f5dbc5bee579eac7f4cbb71e86f2934817f
https://github.com/llvm/llvm-project/commit/dae91f5dbc5bee579eac7f4cbb71e86f2934817f
Author: Florian Hahn <flo at fhahn.com>
Date: 2023-10-07 (Sat, 07 Oct 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Log Message:
-----------
[VPlan] Avoid VPTransformState::reset in fixReduction (NFCI).
There's no need to repeatedly query and reset the state for
LoopExitInstDef. This removes one of the last uses of
VPTransformState::reset, by use a vector to store and update the
results. No other code should try to retrieve the result from State
outside the fixReductionCall.
More information about the All-commits
mailing list