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

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 27 12:17:23 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG12011b521792: [AMDGPU] GCNHazardRecognizer: ignore all meta instructions (authored by foad).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101372/new/

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.340936.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210427/34a6d43b/attachment.bin>


More information about the llvm-commits mailing list