[PATCH] D17161: AMDGPU: Quick fix for extreme slowness in spill-scavenge-offset.ll test

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 11 12:18:06 PST 2016


nhaehnle created this revision.
nhaehnle added a reviewer: arsenm.
nhaehnle added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added a subscriber: qcolombet.

Also, some cosmetic fixes.

http://reviews.llvm.org/D17161

Files:
  test/CodeGen/AMDGPU/spill-scavenge-offset.ll

Index: test/CodeGen/AMDGPU/spill-scavenge-offset.ll
===================================================================
--- test/CodeGen/AMDGPU/spill-scavenge-offset.ll
+++ test/CodeGen/AMDGPU/spill-scavenge-offset.ll
@@ -1,14 +1,15 @@
-; RUN: llc -march=amdgcn -mcpu=verde < %s | FileCheck %s
-; RUN: llc -march=amdgcn -mcpu=tonga < %s | FileCheck %s
+; The register allocator has a drastic effect on the time it takes to run this
+; test.
+; RUN: llc -regalloc=basic -march=amdgcn -mcpu=verde < %s | FileCheck %s
+; RUN: llc -regalloc=basic -march=amdgcn -mcpu=tonga < %s | FileCheck %s
 
 ; When the offset of VGPR spills into scratch space gets too large, an additional SGPR
 ; is used to calculate the scratch load/store address. Make sure that this
 ; mechanism works even when many spills happen.
 
 ; Just test that it compiles successfully.
 ; CHECK-LABEL: test
-define void @test(<1280 x i32> addrspace(1)* %out, <1280 x i32> addrspace(1)* %in,
-                  <96 x i32> addrspace(1)* %sdata_out, <96 x i32> %sdata_in) {
+define void @test(<1280 x i32> addrspace(1)* %out, <1280 x i32> addrspace(1)* %in) {
 entry:
   %tid = call i32 @llvm.SI.tid() nounwind readnone
 
@@ -24,7 +25,7 @@
   call void asm sideeffect "", "~{VGPR164},~{VGPR168},~{VGPR172},~{VGPR176},~{VGPR180},~{VGPR184},~{VGPR188},~{VGPR192}" ()
   call void asm sideeffect "", "~{VGPR196},~{VGPR200},~{VGPR204},~{VGPR208},~{VGPR212},~{VGPR216},~{VGPR220},~{VGPR224}" ()
 
-  %outptr = getelementptr <1280 x i32>, <1280 x i32> addrspace(1)* %in, i32 %tid
+  %outptr = getelementptr <1280 x i32>, <1280 x i32> addrspace(1)* %out, i32 %tid
   store <1280 x i32> %a, <1280 x i32> addrspace(1)* %outptr
 
   ret void


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17161.47700.patch
Type: text/x-patch
Size: 1693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160211/c03f5a38/attachment.bin>


More information about the llvm-commits mailing list