[llvm] 07ba406 - [VPlan] Improve code in VPWidenIntrinsic (NFC) (#141936)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 31 06:20:31 PDT 2025
Author: Ramkumar Ramachandra
Date: 2025-05-31T15:20:28+02:00
New Revision: 07ba406cbd9c0c914b9416ce96b36c2f0b8d5aef
URL: https://github.com/llvm/llvm-project/commit/07ba406cbd9c0c914b9416ce96b36c2f0b8d5aef
DIFF: https://github.com/llvm/llvm-project/commit/07ba406cbd9c0c914b9416ce96b36c2f0b8d5aef.diff
LOG: [VPlan] Improve code in VPWidenIntrinsic (NFC) (#141936)
Use operands() instead of {op_begin(), op_end()}.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlan.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 6a49d07e4cb2c..3e6f737de60a6 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1438,10 +1438,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)
More information about the llvm-commits
mailing list