<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/96353>96353</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[AMDGPU] StackSlotColoring before LowerSGPRSpill causes memfault in Blender 4.1 on gfx908
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
yxsamliu
</td>
</tr>
</table>
<pre>
https://github.com/llvm/llvm-project/pull/93668 caused a regression in Blender 4.1 on gfx908 for all scenes.
```
Fra:48 Mem:1531.14M (Peak 1531.14M) | Time:06:58.63 | Mem:2448.05M, Peak:2448.05M | Scene, View Layer | Sample 0/256
Warning: precise memory violation signal reporting is not enabled, reported
location may not be accurate. See "show amdgpu precise-memory".
Thread 103 "blender" received signal SIGSEGV, Segmentation fault.
[Switching to thread 103, lane 9 (AMDGPU Lane 1:1:1:1/9 (0,0,0)[9,0,0])]
0x00007ffd7689a68c in integrator_intersect_shadow(KernelGlobalsGPU const*, int) () from memory://192866#offset=0x7ffd77f01240&size=4555968
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVFGP6yYT_TXkZXQtPDYOfvBDdvNl9am70qq-vX28wnjs0ItNBHiz6a-vsDfbVmofKoVgBmbmDHMOKgQzzkQNEw9MHHdqiWfnm9t7UJM1y65z_a05x3gJrDgwPDE8jSaely7TbmJ4svbtPn25ePcb6cjwdFmsZXiqi6qSoNUSqAcFnkZPIRg3g5nhwdLck4cyy8HNMA7vNZcwOA_KWgiaZgoZ40fGDx__Ff_4rcuTV6w4lBJeaGLFIRdFnuXlCzCUr6R-wN3AsAa2f4SvZiJWHHjFioOQWVWs1s0Zy1JmXLwwfITk_BfTeqpNaNLmN0NXeFY38ptdTRdLwBmeUFQbrl-Vn808suIAF0_aBIKJJudv8GacVTGVn-5cWfB0cT6aeQQTYHYRaFadpT5l2vao34JapzfPSd3Wkx2B0nrxKlIG0BIBQwxndwU19eNluef-suVmiH-7y69nT6qHnBfJr9tawRDBkybzRv0dYvv_p_Z_T98SopbGiea44RjUYuM9pHhorybqc6okOoifwZObVTNBndpyeDk-vf4Cz8mQp5Z9DjytBzjDx49RM_FQfy7FcbUct3z8nXPO98PQ7ytZq0rqxCczRxq9is5_T58-kI7fw1n17spQ_kR-JvtkXadsSCi0m0NkeEgQzRxXlqBM0-Dd9NGyT87nNcqqYli4YQgUWXHk7yuA_cBzLDnDKpjfiRXHUghRV_IfKbvrm6Kvi1rtqMn3ec05L-v97tyQKkQvZC2FQKU0Yq17LnQhaZBU1f3ONMix5BXmyLnM91nHpey1HlD0Fe6ripWcJmVslpSYOT_uTAgLNXVViGJnVUc2rBpHnOkK6yZDTJL3zarebhkDK7k1IYY_o0QT7fo4bM1j4ghtVPpHa118dNb51POOBucJnt2VfPv0-nN7MdZuug_pJley_Kvmd4u3__2JWSsIiTlrhW8N_hEAAP__BOdzQg">