[NFC][Alignment] Use proper version of getAlign

This commit is contained in:
Guillaume Chatelet 2022-06-13 12:48:52 +00:00
parent 40109fa101
commit d1a27d0b9c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}