[llvm] [LV][VPlan] set FastMathFlags on EVLRecipe (PR #119847)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 24 18:32:46 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff ac1d560709d2ecfe83a98285d4a13afae6db4316 c971ccf4df026d1ee600ec54991b2c19d260280d --extensions h,cpp -- llvm/lib/Transforms/Vectorize/VPlan.h llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index 5d015c89e3..e7be54d76c 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1516,8 +1516,8 @@ static VPRecipeBase *createEVLRecipe(VPValue *HeaderMask,
         // TODO: getFlags from recipe instead of by underlying instruction
         FastMathFlags FMFs = {};
         return new VPWidenIntrinsicRecipe(Intrinsic::vp_select, Ops,
-                                          TypeInfo.inferScalarType(Sel),
-                                          FMFs, Sel->getDebugLoc());
+                                          TypeInfo.inferScalarType(Sel), FMFs,
+                                          Sel->getDebugLoc());
       })
       .Case<VPInstruction>([&](VPInstruction *VPI) -> VPRecipeBase * {
         VPValue *LHS, *RHS;

``````````

</details>


https://github.com/llvm/llvm-project/pull/119847


More information about the llvm-commits mailing list