[PATCH] D29835: Correct PressureDiff calculation in presence of subregs

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 10 10:42:39 PST 2017


arsenm added inline comments.


================
Comment at: test/CodeGen/AMDGPU/schedule-regpressure.mir:62-68
     %5 = S_LOAD_DWORD_IMM %1, 0, 0 :: (non-temporal dereferenceable invariant load 4 from `i32 addrspace(2)* undef`)
     %m0 = S_MOV_B32 -1
     %7 = COPY %5
-    %6 = DS_READ_B32 %7, 0, 0, implicit %m0, implicit %exec
-    DS_WRITE_B32 %7, %6, 4, 0, implicit killed %m0, implicit %exec
+    %6 = DS_READ2_B32 %7, 0, 1, 0, implicit %m0, implicit %exec
+    undef %9.sub1 = V_MUL_LO_I32 %6.sub1, 3, implicit %exec
+    %9.sub0 = V_MUL_LO_I32 %6.sub0, %9.sub1, implicit %exec
+    DS_WRITE2_B32 %7, %9.sub0, %9.sub1, 4, 5, 0, implicit killed %m0, implicit %exec
----------------
Can you add this as a second test rather than modifying the existing test for m0


Repository:
  rL LLVM

https://reviews.llvm.org/D29835





More information about the llvm-commits mailing list