[llvm] bf72a46 - [AArch64][SVE] Fix build failure introduced in 13faa5f44015e111e938f301d40478d965567a5d
Bradley Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 29 04:59:21 PDT 2021
Author: Bradley Smith
Date: 2021-10-29T11:57:02Z
New Revision: bf72a469ba32f786b26d314241e8eb7dfd42f807
URL: https://github.com/llvm/llvm-project/commit/bf72a469ba32f786b26d314241e8eb7dfd42f807
DIFF: https://github.com/llvm/llvm-project/commit/bf72a469ba32f786b26d314241e8eb7dfd42f807.diff
LOG: [AArch64][SVE] Fix build failure introduced in 13faa5f44015e111e938f301d40478d965567a5d
Added:
Modified:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 09174a6e2940..c3624058b42c 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -12014,7 +12014,7 @@ bool AArch64TargetLowering::hasPairedLoad(EVT LoadedType,
unsigned AArch64TargetLowering::getNumInterleavedAccesses(
VectorType *VecTy, const DataLayout &DL, bool UseScalable) const {
unsigned VecSize = UseScalable ? Subtarget->getMinSVEVectorSizeInBits() : 128;
- return std::max(1UL, (DL.getTypeSizeInBits(VecTy) + 127) / VecSize);
+ return std::max<unsigned>(1, (DL.getTypeSizeInBits(VecTy) + 127) / VecSize);
}
MachineMemOperand::Flags
More information about the llvm-commits
mailing list