[PATCH] D145396: [AMDGPU] Fix AddedComplexity for s_buffer_load patterns. NFCI.
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 09:33:52 PST 2023
foad updated this revision to Diff 502690.
foad added a comment.
Update
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145396/new/
https://reviews.llvm.org/D145396
Files:
llvm/lib/Target/AMDGPU/SMInstructions.td
Index: llvm/lib/Target/AMDGPU/SMInstructions.td
===================================================================
--- llvm/lib/Target/AMDGPU/SMInstructions.td
+++ llvm/lib/Target/AMDGPU/SMInstructions.td
@@ -923,6 +923,8 @@
defm : SMRD_Pattern <"S_LOAD_DWORDX16", vt>;
}
+} // End let AddedComplexity = 100
+
defm : SMLoad_Pattern <"S_BUFFER_LOAD_DWORD", i32>;
defm : SMLoad_Pattern <"S_BUFFER_LOAD_DWORDX2", v2i32>;
defm : SMLoad_Pattern <"S_BUFFER_LOAD_DWORDX4", v4i32>;
@@ -934,7 +936,6 @@
defm : SMLoad_Pattern <"S_BUFFER_LOAD_DWORDX4", v4f32>;
defm : SMLoad_Pattern <"S_BUFFER_LOAD_DWORDX8", v8f32>;
defm : SMLoad_Pattern <"S_BUFFER_LOAD_DWORDX16", v16f32>;
-} // End let AddedComplexity = 100
let OtherPredicates = [HasSMemTimeInst] in {
def : GCNPat <
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145396.502690.patch
Type: text/x-patch
Size: 788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230306/3b26022f/attachment.bin>
More information about the llvm-commits
mailing list