[PATCH] D65036: AMDGPU/LoadStoreOptimizer: combine MMOs when merging instructions
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 19 22:11:40 PDT 2019
tstellar created this revision.
tstellar added reviewers: arsenm, nhaehnle.
Herald added subscribers: hiraditya, t-tye, tpr, dstuttard, yaxunl, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.
The LoadStoreOptimizer was creating instructions with 2
MachineMemOperands, which meant they were assumed to alias with all other instructions,
because MachineInstr:mayAlias() returns true when an instruction has multiple
MachineMemOperands.
This was preventing these instructions from being merged again, and was
giving the scheduler less freedom to reorder them.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D65036
Files:
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
llvm/test/CodeGen/AMDGPU/merge-load-store.mir
llvm/test/CodeGen/MIR/AMDGPU/load-store-opt-dlc.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65036.210947.patch
Type: text/x-patch
Size: 6754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190720/903593f1/attachment.bin>
More information about the llvm-commits
mailing list