[AMDGPU] Set wait state for meta instructions to zero
authorChristudasan Devadasan <Christudasan.Devadasan@amd.com>
Tue, 17 Aug 2021 04:26:36 +0000 (00:26 -0400)
committerChristudasan Devadasan <Christudasan.Devadasan@amd.com>
Wed, 18 Aug 2021 05:46:59 +0000 (01:46 -0400)
commit4f5ba46e162eec32a9f9e2a725e6422281913043
treec977d48f658bb34f5a04a16f90a46c2a1b8af3ce
parent803270c0c691ad0dbf8ac91492c79aad9e0d023d
[AMDGPU] Set wait state for meta instructions to zero

It looked more reasonable to set the wait state to
zero for all non-instructions. With that we can avoid
the special handling for them in `getWaitStatesSince`
and `AdvanceCycle`. This NFC patch makes the handling
more generic.
llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp