diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2023-01-11 16:34:43 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2023-01-11 16:36:39 +0000 |
commit | 48f5d77eeed4d7453d199c4b4ac16c1bbfbdbddf (patch) | |
tree | 86f5b6a24a773b4632211ba76f22c3b59823e9d9 /llvm/lib/IR/DataLayout.cpp | |
parent | 0d9afee3d159f5b7cdac7637808f3e25ff16a536 (diff) | |
download | llvm-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/IR/DataLayout.cpp')
-rw-r--r-- | llvm/lib/IR/DataLayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp index fb331ee..20359f6 100644 --- a/llvm/lib/IR/DataLayout.cpp +++ b/llvm/lib/IR/DataLayout.cpp @@ -800,7 +800,7 @@ Align DataLayout::getAlignment(Type *Ty, bool abi_or_pref) const { case Type::X86_MMXTyID: case Type::FixedVectorTyID: case Type::ScalableVectorTyID: { - unsigned BitWidth = getTypeSizeInBits(Ty).getKnownMinSize(); + unsigned BitWidth = getTypeSizeInBits(Ty).getKnownMinValue(); auto I = findAlignmentLowerBound(VECTOR_ALIGN, BitWidth); if (I != Alignments.end() && I->AlignType == VECTOR_ALIGN && I->TypeBitWidth == BitWidth) @@ -812,7 +812,7 @@ Align DataLayout::getAlignment(Type *Ty, bool abi_or_pref) const { // We're only calculating a natural alignment, so it doesn't have to be // based on the full size for scalable vectors. Using the minimum element // count should be enough here. - return Align(PowerOf2Ceil(getTypeStoreSize(Ty).getKnownMinSize())); + return Align(PowerOf2Ceil(getTypeStoreSize(Ty).getKnownMinValue())); } case Type::X86_AMXTyID: return Align(64); |