[AMDGPU] GCNHazardRecognizer: ignore all meta instructions

This is hopefully NFC, but should be more robust in ignoring all
instructions that should be ignored, instead of just some of them.

Differential Revision: https://reviews.llvm.org/D101372
This commit is contained in:
Jay Foad 2021-04-27 17:03:22 +01:00
parent 561f4b9087
commit 12011b5217
1 changed files with 1 additions and 2 deletions

View File

@ -348,8 +348,7 @@ void GCNHazardRecognizer::AdvanceCycle() {
// Do not track non-instructions which do not affect the wait states.
// If included, these instructions can lead to buffer overflow such that
// detectable hazards are missed.
if (CurrCycleInstr->isImplicitDef() || CurrCycleInstr->isDebugInstr() ||
CurrCycleInstr->isKill()) {
if (CurrCycleInstr->isMetaInstruction()) {
CurrCycleInstr = nullptr;
return;
}