[PATCH] D158058: [LV][VPlan] Refactor VPReductionRecipe to use reference for member RdxDesc
Mel Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 16 01:57:31 PDT 2023
Mel-Chen created this revision.
Herald added subscribers: artagnon, tschuett, psnobl, rogfer01, bollu, hiraditya.
Herald added a project: All.
Mel-Chen requested review of this revision.
Herald added subscribers: llvm-commits, wangpc, vkmr.
Herald added a project: LLVM.
This commit refactors the implementation of VPReductionRecipe to use
reference instead of pointer for member RdxDesc. Because the member
RdxDesc in VPReductionRecipe should not be a nullptr, using a reference
will provide clearer semantics.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158058
Files:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158058.550667.patch
Type: text/x-patch
Size: 6375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230816/24b3b284/attachment.bin>
More information about the llvm-commits
mailing list