llvm.org GIT mirror llvm / c5273dd
AMDGPU/SI: Move VI SMEM pattern back into VIInstructions.td Summary: This was accidently moved to CIInstructions.td in r256282 Reviewers: cfang, arsenm Subscribers: arsenm, llvm-commits Differential Revision: http://reviews.llvm.org/D15763 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256775 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 4 years ago
2 changed file(s) with 9 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
328328
329329 let Predicates = [useFlatForGlobal] in {
330330
331 // 1. Offset as 20bit DWORD immediate
332 def : Pat <
333 (SIload_constant v4i32:$sbase, IMM20bit:$offset),
334 (S_BUFFER_LOAD_DWORD_IMM $sbase, (as_i32imm $offset))
335 >;
336
337331 // Patterns for global loads with no offset
338332 class FlatLoadPat : Pat <
339333 (vt (node i64:$addr)),
100100
101101 } // End SIAssemblerPredicate = DisableInst, SubtargetPredicate = isVI
102102
103 let Predicates = [isVI] in {
104
105 // 1. Offset as 20bit DWORD immediate
106 def : Pat <
107 (SIload_constant v4i32:$sbase, IMM20bit:$offset),
108 (S_BUFFER_LOAD_DWORD_IMM $sbase, (as_i32imm $offset))
109 >;
110
111 } // End Predicates = [isVI]