Could you check whether the bug persists in 17.3.0? It includes patches that improve the register allocation on r600. If this doesn't fix the bug, could you post an apitrace?