[PATCH] D64143: [AMDGPU] Correct the setting of `FlatScratchInit`.

Michael Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 10:24:42 PDT 2019


hliao marked an inline comment as done.
hliao added inline comments.


================
Comment at: llvm/test/CodeGen/AMDGPU/undefined-physreg-sgpr-spill.mir:44
     successors: %bb.1, %bb.2
-    liveins: $vgpr0, $sgpr4_sgpr5
+    liveins: $vgpr0, $sgpr4_sgpr5, $sgpr8_sgpr9_sgpr10_sgpr11, $sgpr13
 
----------------
this test case needs revising as the max-sgprs is incorrectly calculated when `FlatScratchInit` is set wrongly. That results in `$sgpr10` and `sgpr11` being reserved. After fixing `FlatScratchInit` setting, we need to add them into livein registers.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64143/new/

https://reviews.llvm.org/D64143





More information about the llvm-commits mailing list