[AMDGPU] Fix extra waitcnt being added with BUFFER_INVL2
authorAustin Kerbow <Austin.Kerbow@amd.com>
Tue, 11 May 2021 16:29:48 +0000 (09:29 -0700)
committerAustin Kerbow <Austin.Kerbow@amd.com>
Tue, 11 May 2021 20:17:33 +0000 (13:17 -0700)
commit4433f4601e8a8e36ddd9bb6f6ed394bda353b828
tree6a4f189af1ea7879280cb9107d5f39525160776e
parenta7757f6c22e45e84e56da79af67fe29dd1c224f5
[AMDGPU] Fix extra waitcnt being added with BUFFER_INVL2

The waitcnt pass would increment the number of vmem events for some buffer
invalidates that were not handled by the pass.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D102252
llvm/lib/Target/AMDGPU/BUFInstructions.td
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
llvm/test/CodeGen/AMDGPU/waitcnt-preexisting.mir