Skip to content

Commit 07ba406

Browse files
authored
[VPlan] Improve code in VPWidenIntrinsic (NFC) (#141936)
Use operands() instead of {op_begin(), op_end()}.
1 parent 0adf6e8 commit 07ba406

File tree

1 file changed

+3
-4
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+3
-4
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,10 +1438,9 @@ class VPWidenIntrinsicRecipe : public VPRecipeWithIRFlags, public VPIRMetadata {
14381438
VPWidenIntrinsicRecipe *clone() override {
14391439
if (Value *CI = getUnderlyingValue())
14401440
return new VPWidenIntrinsicRecipe(*cast<CallInst>(CI), VectorIntrinsicID,
1441-
{op_begin(), op_end()}, ResultTy,
1442-
getDebugLoc());
1443-
return new VPWidenIntrinsicRecipe(VectorIntrinsicID, {op_begin(), op_end()},
1444-
ResultTy, getDebugLoc());
1441+
operands(), ResultTy, getDebugLoc());
1442+
return new VPWidenIntrinsicRecipe(VectorIntrinsicID, operands(), ResultTy,
1443+
getDebugLoc());
14451444
}
14461445

14471446
VP_CLASSOF_IMPL(VPDef::VPWidenIntrinsicSC)

0 commit comments

Comments
 (0)