[all-commits] [llvm/llvm-project] 463e7c: [LV][VPlan] Refactor VPReductionRecipe to use refe...

Mel Chen via All-commits all-commits at lists.llvm.org
Wed Aug 16 19:38:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 463e7cb89278936a86fef401abc20f171fcb6363
      https://github.com/llvm/llvm-project/commit/463e7cb89278936a86fef401abc20f171fcb6363
  Author: Mel Chen <mel.chen at sifive.com>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
    M llvm/unittests/Transforms/Vectorize/VPlanTest.cpp

  Log Message:
  -----------
  [LV][VPlan] Refactor VPReductionRecipe to use reference for member RdxDesc

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.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D158058




More information about the All-commits mailing list