aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ExpandVectorPredication.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2025-08-19 15:27:56 -0700
committerCraig Topper <craig.topper@sifive.com>2025-08-19 15:31:15 -0700
commit58c41b74911c674d3dc78b2be82419bc1fd9b237 (patch)
treefcdf74b143babbf32f65e27f9fadffa4b72327cb /llvm/lib/CodeGen/ExpandVectorPredication.cpp
parent07a6323c328bdfbf0bd86957cb4692b096c0d544 (diff)
downloadllvm-58c41b74911c674d3dc78b2be82419bc1fd9b237.zip
llvm-58c41b74911c674d3dc78b2be82419bc1fd9b237.tar.gz
llvm-58c41b74911c674d3dc78b2be82419bc1fd9b237.tar.bz2
[ExpandVectorPredication] Use IRBuilder::CreateNUWMul instead of passing flags to CreateMul. NFC
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
-rw-r--r--llvm/lib/CodeGen/ExpandVectorPredication.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ExpandVectorPredication.cpp b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
index d8e3f5f..753c656 100644
--- a/llvm/lib/CodeGen/ExpandVectorPredication.cpp
+++ b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
@@ -508,8 +508,7 @@ bool CachingVPExpander::discardEVLParameter(VPIntrinsic &VPI) {
IRBuilder<> Builder(VPI.getParent(), VPI.getIterator());
Value *FactorConst = Builder.getInt32(StaticElemCount.getKnownMinValue());
Value *VScale = Builder.CreateVScale(Int32Ty, "vscale");
- MaxEVL = Builder.CreateMul(VScale, FactorConst, "scalable_size",
- /*NUW*/ true, /*NSW*/ false);
+ MaxEVL = Builder.CreateNUWMul(VScale, FactorConst, "scalable_size");
} else {
MaxEVL = ConstantInt::get(Int32Ty, StaticElemCount.getFixedValue(), false);
}