Skip to content

Commit 17f1ccc

Browse files
committed
[AArch64][SVE] NFC: Remove unnecessary if
1 parent 47d5754 commit 17f1ccc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11414,9 +11414,7 @@ bool AArch64TargetLowering::getTgtMemIntrinsic(IntrinsicInfo &Info,
1141411414
Info.ptrVal = I.getArgOperand(1);
1141511415
Info.offset = 0;
1141611416
Info.align = DL.getABITypeAlign(PtrTy->getElementType());
11417-
Info.flags = MachineMemOperand::MOLoad;
11418-
if (Intrinsic == Intrinsic::aarch64_sve_ldnt1)
11419-
Info.flags |= MachineMemOperand::MONonTemporal;
11417+
Info.flags = MachineMemOperand::MOLoad | MachineMemOperand::MONonTemporal;
1142011418
return true;
1142111419
}
1142211420
case Intrinsic::aarch64_sve_stnt1: {
@@ -11426,9 +11424,7 @@ bool AArch64TargetLowering::getTgtMemIntrinsic(IntrinsicInfo &Info,
1142611424
Info.ptrVal = I.getArgOperand(2);
1142711425
Info.offset = 0;
1142811426
Info.align = DL.getABITypeAlign(PtrTy->getElementType());
11429-
Info.flags = MachineMemOperand::MOStore;
11430-
if (Intrinsic == Intrinsic::aarch64_sve_stnt1)
11431-
Info.flags |= MachineMemOperand::MONonTemporal;
11427+
Info.flags = MachineMemOperand::MOStore | MachineMemOperand::MONonTemporal;
1143211428
return true;
1143311429
}
1143411430
default:

0 commit comments

Comments
 (0)