[PATCH] D82463: [AMDGPU] Spill more than wavesize CSR SGPRs

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 30 09:44:46 PDT 2020


arsenm added inline comments.


================
Comment at: llvm/test/CodeGen/AMDGPU/spill_more_than_wavesize_csr_sgprs.ll:31
+  %alloca = alloca i32, align 4, addrspace(5)
+  store volatile i32 0, i32 addrspace(5)* %alloca
+  call void asm sideeffect "",
----------------
saiislam wrote:
> With this patch applied over recent trunk, I am seeing following behavior:
> 
>   - without volatile in store instruction, correct behavior (using next vgpr for spilling). stack object instruction gets optimized out
>   - with volatile in store instruction, spills are still getting overwritten
>   - With -O0, with and without volatile spills are getting overwritten.
> 
> So, whenever stack object is present, wrong behavior is getting triggered somehow.
Did you mean without the patch?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82463





More information about the llvm-commits mailing list