[PATCH] D101372: [AMDGPU] GCNHazardRecognizer: ignore all meta instructions

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 27 09:05:54 PDT 2021


foad created this revision.
foad added reviewers: rampitec, dstuttard.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
foad requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101372

Files:
  llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp


Index: llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+++ llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
@@ -348,8 +348,7 @@
   // 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;
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101372.340870.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210427/640894b6/attachment.bin>


More information about the llvm-commits mailing list