[llvm] d1a27d0 - [NFC][Alignment] Use proper version of getAlign
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 13 06:00:02 PDT 2022
Author: Guillaume Chatelet
Date: 2022-06-13T12:59:38Z
New Revision: d1a27d0b9cdfab5dac3cf2d5efad489a41c04bc9
URL: https://github.com/llvm/llvm-project/commit/d1a27d0b9cdfab5dac3cf2d5efad489a41c04bc9
DIFF: https://github.com/llvm/llvm-project/commit/d1a27d0b9cdfab5dac3cf2d5efad489a41c04bc9.diff
LOG: [NFC][Alignment] Use proper version of getAlign
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 c855d125958f..5d6b4e7e0b19 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -19688,11 +19688,11 @@ bool AArch64TargetLowering::isOpSuitableForLDPSTP(const Instruction *I) const {
if (auto LI = dyn_cast<LoadInst>(I))
return LI->getType()->getPrimitiveSizeInBits() == 128 &&
- LI->getAlignment() >= 16;
+ LI->getAlign() >= Align(16);
if (auto SI = dyn_cast<StoreInst>(I))
return SI->getValueOperand()->getType()->getPrimitiveSizeInBits() == 128 &&
- SI->getAlignment() >= 16;
+ SI->getAlign() >= Align(16);
return false;
}
More information about the llvm-commits
mailing list