[all-commits] [llvm/llvm-project] ed1962: [VPlan] Make VPReductionRecipe a VPRecipeWithIRFla...

Elvis Wang via All-commits all-commits at lists.llvm.org
Mon Mar 17 19:08:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed19620b8c93f27f322b2f40136e5bd428827e00
      https://github.com/llvm/llvm-project/commit/ed19620b8c93f27f322b2f40136e5bd428827e00
  Author: Elvis Wang <elvis.wang at sifive.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

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

  Log Message:
  -----------
  [VPlan] Make VPReductionRecipe a VPRecipeWithIRFlags. NFC  (#130881)

This patch change the parent of the VPReductionRecipe from
VPSingleDefRecipe to VPRecipeWithIRFlags and also print/get/drop/control
flags by the VPRecipeWithIRFlags. This will remove the dependency of the
underlying instruction.

This patch also add a new function `setFastMathFlags()` to the
VPRecipeWithIRFlags because the entire reduction chain may contains
multiple instructions. And the underlying instruction may not contains
the corresponding flags for this reduction.

Split from #113903.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list