AMDGPU: mark SET_INACTIVE_* as convergent operation
authorRuiling Song <ruiling.song@amd.com>
Thu, 6 Apr 2023 06:31:55 +0000 (14:31 +0800)
committerRuiling Song <ruiling.song@amd.com>
Fri, 7 Apr 2023 01:10:43 +0000 (09:10 +0800)
commit2ab6835f285fbb231e90658c1c8c727defb03d9a
treea480d24aafd1bbf7a34773ba98426f9cfe3b64f5
parentfc06a429aae137c086ca45e3537eccb0e8128698
AMDGPU: mark SET_INACTIVE_* as convergent operation

set_inactive is actually a kind of operation that is passing certain
value from active threads to inactive threads. In later WWM operation,
the activated threads which were disabled before would read such
values passed to them by set_inactive operation. So I think the
set_inactive is a convergent operation.

Differential Revision: https://reviews.llvm.org/D147683
llvm/lib/Target/AMDGPU/SIInstructions.td
llvm/test/CodeGen/AMDGPU/should-not-hoist-set-inactive.ll