From d1a27d0b9cdfab5dac3cf2d5efad489a41c04bc9 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Mon, 13 Jun 2022 12:48:52 +0000 Subject: [PATCH] [NFC][Alignment] Use proper version of getAlign --- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(I)) return LI->getType()->getPrimitiveSizeInBits() == 128 && - LI->getAlignment() >= 16; + LI->getAlign() >= Align(16); if (auto SI = dyn_cast(I)) return SI->getValueOperand()->getType()->getPrimitiveSizeInBits() == 128 && - SI->getAlignment() >= 16; + SI->getAlign() >= Align(16); return false; }