Skip to content

Commit 58c41b7

Browse files
committed
[ExpandVectorPredication] Use IRBuilder::CreateNUWMul instead of passing flags to CreateMul. NFC
1 parent 07a6323 commit 58c41b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CodeGen/ExpandVectorPredication.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,7 @@ bool CachingVPExpander::discardEVLParameter(VPIntrinsic &VPI) {
508508
IRBuilder<> Builder(VPI.getParent(), VPI.getIterator());
509509
Value *FactorConst = Builder.getInt32(StaticElemCount.getKnownMinValue());
510510
Value *VScale = Builder.CreateVScale(Int32Ty, "vscale");
511-
MaxEVL = Builder.CreateMul(VScale, FactorConst, "scalable_size",
512-
/*NUW*/ true, /*NSW*/ false);
511+
MaxEVL = Builder.CreateNUWMul(VScale, FactorConst, "scalable_size");
513512
} else {
514513
MaxEVL = ConstantInt::get(Int32Ty, StaticElemCount.getFixedValue(), false);
515514
}

0 commit comments

Comments
 (0)