[llvm] [LoopVectorizer] Propagate underlying instruction to the cloned instances of VPPartialReductionRecipes (PR #123638)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 08:06:56 PST 2025


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 e33f456ae591559883e89a1f18b2dec21225e90f cf56562067124201a9150b10c7d6eb5f9f6c1a25 --extensions h -- llvm/lib/Transforms/Vectorize/VPlan.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 9d8136a0eb..3328987201 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2460,7 +2460,7 @@ public:
 
   VPPartialReductionRecipe *clone() override {
     return new VPPartialReductionRecipe(Opcode, getOperand(0), getOperand(1),
-       getUnderlyingInstr());
+                                        getUnderlyingInstr());
   }
 
   VP_CLASSOF_IMPL(VPDef::VPPartialReductionSC)

``````````

</details>


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


More information about the llvm-commits mailing list