[AMDGPU] New helper function SIInsertWaitcnts::getVmemWaitEventType
authorJay Foad <jay.foad@amd.com>
Wed, 19 Oct 2022 12:39:20 +0000 (13:39 +0100)
committerJay Foad <jay.foad@amd.com>
Wed, 19 Oct 2022 15:22:50 +0000 (16:22 +0100)
commitf0ca946bf917430bc97f80a5791312ef28c48320
tree1759dabdc2e2c86f893d5a67a02837d2bbb0c56b
parent456951dcd3d5ab6cb41aa71831f52cdb2bdcecc4
[AMDGPU] New helper function SIInsertWaitcnts::getVmemWaitEventType

This just commons up and simplifies some logic that was repeated in
SIInsertWaitcnts::updateEventWaitcntAfter. NFCI.

Differential Revision: https://reviews.llvm.org/D136253
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp