[llvm] 17f1ccc - [AArch64][SVE] NFC: Remove unnecessary if
Cullen Rhodes via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 16 04:34:15 PDT 2021
Author: Cullen Rhodes
Date: 2021-09-16T11:26:46Z
New Revision: 17f1ccc7590872a4fba6b2194f5fa1203b893ba4
URL: https://github.com/llvm/llvm-project/commit/17f1ccc7590872a4fba6b2194f5fa1203b893ba4
DIFF: https://github.com/llvm/llvm-project/commit/17f1ccc7590872a4fba6b2194f5fa1203b893ba4.diff
LOG: [AArch64][SVE] NFC: Remove unnecessary if
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 657f574e653ec..52e535a2f08db 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -11414,9 +11414,7 @@ bool AArch64TargetLowering::getTgtMemIntrinsic(IntrinsicInfo &Info,
Info.ptrVal = I.getArgOperand(1);
Info.offset = 0;
Info.align = DL.getABITypeAlign(PtrTy->getElementType());
- Info.flags = MachineMemOperand::MOLoad;
- if (Intrinsic == Intrinsic::aarch64_sve_ldnt1)
- Info.flags |= MachineMemOperand::MONonTemporal;
+ Info.flags = MachineMemOperand::MOLoad | MachineMemOperand::MONonTemporal;
return true;
}
case Intrinsic::aarch64_sve_stnt1: {
@@ -11426,9 +11424,7 @@ bool AArch64TargetLowering::getTgtMemIntrinsic(IntrinsicInfo &Info,
Info.ptrVal = I.getArgOperand(2);
Info.offset = 0;
Info.align = DL.getABITypeAlign(PtrTy->getElementType());
- Info.flags = MachineMemOperand::MOStore;
- if (Intrinsic == Intrinsic::aarch64_sve_stnt1)
- Info.flags |= MachineMemOperand::MONonTemporal;
+ Info.flags = MachineMemOperand::MOStore | MachineMemOperand::MONonTemporal;
return true;
}
default:
More information about the llvm-commits
mailing list