[llvm] 246b8ea - [AMDGPU] Preserve existing alias info on LDS DMA intrinsics in MIR (#73870)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 29 18:09:35 PST 2023
Author: Stanislav Mekhanoshin
Date: 2023-11-29T18:09:31-08:00
New Revision: 246b8eae20564e2c34690803efdbaa9cec7c90a1
URL: https://github.com/llvm/llvm-project/commit/246b8eae20564e2c34690803efdbaa9cec7c90a1
DIFF: https://github.com/llvm/llvm-project/commit/246b8eae20564e2c34690803efdbaa9cec7c90a1.diff
LOG: [AMDGPU] Preserve existing alias info on LDS DMA intrinsics in MIR (#73870)
As of now it is NFCI.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 6d00cea80d7b24c..d6a768a64ff3421 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -9085,12 +9085,13 @@ SDValue SITargetLowering::LowerINTRINSIC_VOID(SDValue Op,
auto F = LoadMMO->getFlags() &
~(MachineMemOperand::MOStore | MachineMemOperand::MOLoad);
- LoadMMO = MF.getMachineMemOperand(LoadPtrI, F | MachineMemOperand::MOLoad,
- Size, LoadMMO->getBaseAlign());
+ LoadMMO =
+ MF.getMachineMemOperand(LoadPtrI, F | MachineMemOperand::MOLoad, Size,
+ LoadMMO->getBaseAlign(), LoadMMO->getAAInfo());
- MachineMemOperand *StoreMMO =
- MF.getMachineMemOperand(StorePtrI, F | MachineMemOperand::MOStore,
- sizeof(int32_t), LoadMMO->getBaseAlign());
+ MachineMemOperand *StoreMMO = MF.getMachineMemOperand(
+ StorePtrI, F | MachineMemOperand::MOStore, sizeof(int32_t),
+ LoadMMO->getBaseAlign(), LoadMMO->getAAInfo());
auto Load = DAG.getMachineNode(Opc, DL, M->getVTList(), Ops);
DAG.setNodeMemRefs(Load, {LoadMMO, StoreMMO});
@@ -9161,11 +9162,12 @@ SDValue SITargetLowering::LowerINTRINSIC_VOID(SDValue Op,
StorePtrI.AddrSpace = AMDGPUAS::LOCAL_ADDRESS;
auto F = LoadMMO->getFlags() &
~(MachineMemOperand::MOStore | MachineMemOperand::MOLoad);
- LoadMMO = MF.getMachineMemOperand(LoadPtrI, F | MachineMemOperand::MOLoad,
- Size, LoadMMO->getBaseAlign());
- MachineMemOperand *StoreMMO =
- MF.getMachineMemOperand(StorePtrI, F | MachineMemOperand::MOStore,
- sizeof(int32_t), Align(4));
+ LoadMMO =
+ MF.getMachineMemOperand(LoadPtrI, F | MachineMemOperand::MOLoad, Size,
+ LoadMMO->getBaseAlign(), LoadMMO->getAAInfo());
+ MachineMemOperand *StoreMMO = MF.getMachineMemOperand(
+ StorePtrI, F | MachineMemOperand::MOStore, sizeof(int32_t), Align(4),
+ LoadMMO->getAAInfo());
auto Load = DAG.getMachineNode(Opc, DL, Op->getVTList(), Ops);
DAG.setNodeMemRefs(Load, {LoadMMO, StoreMMO});
More information about the llvm-commits
mailing list