AMDGPU: Fix LiveVariables error after optimizing VGPR ranges
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 5 Jan 2022 17:09:09 +0000 (12:09 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 17 Jan 2022 14:38:35 +0000 (09:38 -0500)
commite09f98a69a8d223168f0766a3574c4a09b167b81
tree3f8b707f929f0dba8064dd3b79cf58715e1b930e
parent81004269e5c7d69f27b8273f48dd4d0f86ac1358
AMDGPU: Fix LiveVariables error after optimizing VGPR ranges

This was not removing the block from the live set depending on the
specific depth first visit order. Fixes a verifier error in the OpenCL
conformance tests.
llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp
llvm/test/CodeGen/AMDGPU/block-should-not-be-in-alive-blocks.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/vgpr-liverange-ir.ll