[llvm] [VPlan] Improve code in VPWidenIntrinsic (NFC) (PR #141936)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 29 05:15:00 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Ramkumar Ramachandra (artagnon)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/141936.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/Vectorize/VPlan.h (+3-4)
``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 16c461cd60919..0a095fe84d07d 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1425,10 +1425,9 @@ class VPWidenIntrinsicRecipe : public VPRecipeWithIRFlags, public VPIRMetadata {
VPWidenIntrinsicRecipe *clone() override {
if (Value *CI = getUnderlyingValue())
return new VPWidenIntrinsicRecipe(*cast<CallInst>(CI), VectorIntrinsicID,
- {op_begin(), op_end()}, ResultTy,
- getDebugLoc());
- return new VPWidenIntrinsicRecipe(VectorIntrinsicID, {op_begin(), op_end()},
- ResultTy, getDebugLoc());
+ operands(), ResultTy, getDebugLoc());
+ return new VPWidenIntrinsicRecipe(VectorIntrinsicID, operands(), ResultTy,
+ getDebugLoc());
}
VP_CLASSOF_IMPL(VPDef::VPWidenIntrinsicSC)
``````````
</details>
https://github.com/llvm/llvm-project/pull/141936
More information about the llvm-commits
mailing list