aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2023-01-11 16:34:43 +0000
committerGuillaume Chatelet <gchatelet@google.com>2023-01-11 16:36:39 +0000
commit48f5d77eeed4d7453d199c4b4ac16c1bbfbdbddf (patch)
tree86f5b6a24a773b4632211ba76f22c3b59823e9d9 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent0d9afee3d159f5b7cdac7637808f3e25ff16a536 (diff)
downloadllvm-48f5d77eeed4d7453d199c4b4ac16c1bbfbdbddf.zip
llvm-48f5d77eeed4d7453d199c4b4ac16c1bbfbdbddf.tar.gz
llvm-48f5d77eeed4d7453d199c4b4ac16c1bbfbdbddf.tar.bz2
[NFC] Use TypeSize::getKnownMinValue() instead of TypeSize::getKnownMinSize()
This change is one of a series to implement the discussion from https://reviews.llvm.org/D141134.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index cdfe98f..31caa65 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -2355,7 +2355,7 @@ bool CodeGenPrepare::optimizeCallInst(CallInst *CI, ModifyDT &ModifiedDT) {
// to benefit from cheap constant propagation.
Type *ScalableVectorTy =
VectorType::get(Type::getInt8Ty(II->getContext()), 1, true);
- if (DL->getTypeAllocSize(ScalableVectorTy).getKnownMinSize() == 8) {
+ if (DL->getTypeAllocSize(ScalableVectorTy).getKnownMinValue() == 8) {
auto *Null = Constant::getNullValue(ScalableVectorTy->getPointerTo());
auto *One = ConstantInt::getSigned(II->getType(), 1);
auto *CGep =