[AMDGPU] Fix WQM failure with single block inactive demote
authorCarl Ritson <carl.ritson@amd.com>
Thu, 6 May 2021 11:27:03 +0000 (20:27 +0900)
committerCarl Ritson <carl.ritson@amd.com>
Thu, 6 May 2021 12:02:26 +0000 (21:02 +0900)
commit67cfefebbbbb3a5923c47c31293a8f76596de8be
tree80cbc71278ed7caac16b2cd71a7e05d40d964e1a
parentfc690777fce0bf50a8f424b05993b1e218713ae5
[AMDGPU] Fix WQM failure with single block inactive demote

Instruction test for inactive kill/demote needs to be based on
actual opcode not whether instruction would be lowered to demote.

Reviewed By: piotr

Differential Revision: https://reviews.llvm.org/D101966
llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wqm.demote.ll