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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, thanks!
It looks like there are some clang-format errors according to the precommit tests, please make sure to run clang-format-diff before landing.
llvm/lib/Transforms/Vectorize/VPlan.h | ||
---|---|---|
1732 | Should this also be reference? |
llvm/lib/Transforms/Vectorize/VPlan.h | ||
---|---|---|
1732 | Good question! I just verified, and it seems that TTI in llvm::createTargetReduction is not being used. Perhaps we can directly remove TTI from VPReductionRecipe. |
Should this also be reference?