[llvm] [LV] Decompose WidenIntOrFPInduction into phi and update recipes (PR #82021)

via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 10:35:54 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 36e73e4edcf31855bf5219a750ce8e6c76a91524 372daf08f62bcf602408e002e2b4c73e222aa9f9 -- llvm/include/llvm/Analysis/IVDescriptors.h llvm/lib/Transforms/Vectorize/LoopVectorize.cpp llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h llvm/lib/Transforms/Vectorize/VPlan.cpp llvm/lib/Transforms/Vectorize/VPlan.h llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp llvm/lib/Transforms/Vectorize/VPlanValue.h llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp
index 96732b77a9..ea4a3f4185 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp
@@ -816,7 +816,7 @@ void VPlan::prepareToExecute(Value *TripCountV, Value *VectorTripCountV,
   if (WidenVFxUF.getNumUsers() > 0)
     for (unsigned Part = 0, UF = State.UF; Part < UF; ++Part) {
       Value *Step =
-          createStepForVF(Builder, TripCountV->getType(), State.VF, Part+1);
+          createStepForVF(Builder, TripCountV->getType(), State.VF, Part + 1);
       if (State.VF.isScalar())
         State.set(&WidenVFxUF, Step, Part);
       else

``````````

</details>


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


More information about the llvm-commits mailing list