[PATCH] D114351: [AMDGPU] Add SIMemoryLegalizer comments to clarify bit usage
Tony Tye via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 25 03:59:33 PST 2021
t-tye added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp:868
+ // Set L1 cache policy to be MISS_EVICT for load instructions and
+ // MISS_LRU (write-combine) for store instructions.
+ // Note: there is no L2 cache bypass policy at the ISA level.
----------------
I would not add "{write-combine)" as it really is not an exact match for that term.
================
Comment at: llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp:1220
+ // Set L1 cache policy to be MISS_EVICT for load instructions and
+ // MISS_LRU (write-combine) for store instructions.
+ // Note: there is no L2 cache bypass policy at the ISA level.
----------------
Would eliminate "(write-combine)" as mentioned above.
================
Comment at: llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp:1451
+ // Set L0 and L1 cache policy to be MISS_EVICT for load instructions
+ // and MISS_LRU (write-combine) for store instructions.
if (Op == SIMemOp::LOAD) {
----------------
Eliminate "(write-cobine)". Add:
// Note that there is no L2 cache coherent bypass policy at the isa level.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114351/new/
https://reviews.llvm.org/D114351
More information about the llvm-commits
mailing list