[PATCH] D15763: AMDGPU/SI: Move VI SMEM pattern back into VIInstructions.td

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 4 12:26:55 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL256775: AMDGPU/SI: Move VI SMEM pattern back into VIInstructions.td (authored by tstellar).

Changed prior to commit:
  http://reviews.llvm.org/D15763?vs=43571&id=43909#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D15763

Files:
  llvm/trunk/lib/Target/AMDGPU/CIInstructions.td
  llvm/trunk/lib/Target/AMDGPU/VIInstructions.td

Index: llvm/trunk/lib/Target/AMDGPU/VIInstructions.td
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/VIInstructions.td
+++ llvm/trunk/lib/Target/AMDGPU/VIInstructions.td
@@ -101,3 +101,12 @@
 
 } // End SIAssemblerPredicate = DisableInst, SubtargetPredicate = isVI
 
+let Predicates = [isVI] in {
+
+// 1. Offset as 20bit DWORD immediate
+def : Pat <
+  (SIload_constant v4i32:$sbase, IMM20bit:$offset),
+  (S_BUFFER_LOAD_DWORD_IMM $sbase, (as_i32imm $offset))
+>;
+
+} // End Predicates = [isVI]
Index: llvm/trunk/lib/Target/AMDGPU/CIInstructions.td
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/CIInstructions.td
+++ llvm/trunk/lib/Target/AMDGPU/CIInstructions.td
@@ -329,12 +329,6 @@
 
 let Predicates = [useFlatForGlobal] in {
 
-// 1. Offset as 20bit DWORD immediate
-def : Pat <
-  (SIload_constant v4i32:$sbase, IMM20bit:$offset),
-  (S_BUFFER_LOAD_DWORD_IMM $sbase, (as_i32imm $offset))
->;
-
 // Patterns for global loads with no offset
 class FlatLoadPat <FLAT inst, SDPatternOperator node, ValueType vt> : Pat <
   (vt (node i64:$addr)),


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15763.43909.patch
Type: text/x-patch
Size: 1158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160104/732f3284/attachment.bin>


More information about the llvm-commits mailing list