]> granicus.if.org Git - llvm/commitdiff
AMDGPU: Remove a useless VI SMRD pattern
authorMarek Olsak <marek.olsak@amd.com>
Mon, 30 Jan 2017 12:25:14 +0000 (12:25 +0000)
committerMarek Olsak <marek.olsak@amd.com>
Mon, 30 Jan 2017 12:25:14 +0000 (12:25 +0000)
Summary: already covered by complex patterns

Reviewers: arsenm, nhaehnle, tstellarAMD

Subscribers: kzhuravl, wdng, yaxunl, tony-tye

Differential Revision: https://reviews.llvm.org/D28995

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293477 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/SIInstrInfo.td
lib/Target/AMDGPU/SMInstructions.td

index 85b94201ea63f301e507e972ec334a0ae973a65d..cfa17739829730dff0bddd02d67e85c5be6a2ec3 100644 (file)
@@ -266,10 +266,6 @@ def SIMM16bit : PatLeaf <(imm),
   [{return isInt<16>(N->getSExtValue());}]
 >;
 
-def IMM20bit : PatLeaf <(imm),
-  [{return isUInt<20>(N->getZExtValue());}]
->;
-
 class InlineImm <ValueType vt> : PatLeaf <(vt imm), [{
   return isInlineImmediate(N);
 }]>;
index 02656483cd74b8899114f24d0502af487f5c8aec..5dfae3f8f3f809b6853da2dd7eee3807194ef1d8 100644 (file)
@@ -293,12 +293,6 @@ def : Pat <
 
 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), 0)
->;
-
 def : Pat <
   (i64 (readcyclecounter)),
   (S_MEMREALTIME)