[PATCH] D19401: MachineScheduler: Fully compare top/bottom candidates

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 17:07:56 PDT 2016


MatzeB added inline comments.

================
Comment at: test/CodeGen/AMDGPU/s_addk_i32.ll:6-7
@@ -5,4 +5,4 @@
 ; SI: s_load_dword [[VAL:s[0-9]+]]
-; SI: s_addk_i32 [[VAL]], 0x41
-; SI: v_mov_b32_e32 [[VRESULT:v[0-9]+]], [[VAL]]
+; SI: s_add_i32 [[ADDRES:s[0-9]+]], [[VAL]], 0x41
+; SI: v_mov_b32_e32 [[VRESULT:v[0-9]+]], [[ADDRES]]
 ; SI: buffer_store_dword [[VRESULT]]
----------------
tstellarAMD wrote:
> This is a regression.
This is avoided with with http://reviews.llvm.org/D21540 applied.

================
Comment at: test/CodeGen/AMDGPU/s_addk_i32.ll:31-50
@@ -30,22 +30,22 @@
 ; SI-LABEL: {{^}}s_addk_i32_k1:
-; SI: s_addk_i32 {{s[0-9]+}}, 0x7fff{{$}}
+; SI: s_add_i32 {{s[0-9]+}}, {{s[0-9]+}}, 0x7fff{{$}}
 ; SI: s_endpgm
 define void @s_addk_i32_k1(i32 addrspace(1)* %out, i32 %b) {
   %add = add i32 %b, 32767 ; (1 << 15) - 1
   store i32 %add, i32 addrspace(1)* %out
   ret void
 }
 
 ; SI-LABEL: {{^}}s_addk_i32_k2:
-; SI: s_addk_i32 {{s[0-9]+}}, 0xffef{{$}}
+; SI: s_add_i32 {{s[0-9]+}}, {{s[0-9]+}}, 0xffffffef
 ; SI: s_endpgm
 define void @s_addk_i32_k2(i32 addrspace(1)* %out, i32 %b) {
   %add = add i32 %b, -17
   store i32 %add, i32 addrspace(1)* %out
   ret void
 }
 
 ; SI-LABEL: {{^}}s_addk_v2i32_k0:
-; SI-DAG: s_addk_i32 {{s[0-9]+}}, 0x41
-; SI-DAG: s_addk_i32 {{s[0-9]+}}, 0x42
+; SI-DAG: s_add_i32 {{s[0-9+]}}, {{s[0-9]+}}, 0x41
+; SI-DAG: s_add_i32 {{s[0-9+]}}, {{s[0-9]+}}, 0x42
 ; SI: s_endpgm
----------------
tstellarAMD wrote:
> These are all regressions.
No regression with http://reviews.llvm.org/D21540 applied.

================
Comment at: test/CodeGen/AMDGPU/shl_add_constant.ll:77-78
@@ -76,4 +76,4 @@
 ; SI: s_add_i32 [[TMP:s[0-9]+]], [[Y]], [[SHL3]]
-; SI: s_addk_i32 [[TMP]], 0x3d8
-; SI: v_mov_b32_e32 [[VRESULT:v[0-9]+]], [[TMP]]
+; SI: s_add_i32 [[TMP2:s[0-9]+]], [[TMP]], 0x3d8
+; SI: v_mov_b32_e32 [[VRESULT:v[0-9]+]], [[TMP2]]
 ; SI: buffer_store_dword [[VRESULT]]
----------------
tstellarAMD wrote:
> This is a regression.
Are you sure this is actually a regression: The different ordering in the function also gives me:
-; NumSgprs: 8
+; NumSgprs: 6
when comparing the previous and new version!


Repository:
  rL LLVM

http://reviews.llvm.org/D19401





More information about the llvm-commits mailing list