[PATCH] D79792: [AMDGPU] New SIInsertHardClauses pass

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 12 13:27:58 PDT 2020


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp:116-118
+    BuildMI(*CI.First->getParent(), *CI.First, CI.First->getDebugLoc(),
+            TII->get(AMDGPU::S_CLAUSE))
+        .addImm(CI.Length - 1);
----------------
Do we need to bundle the claused instructions? What prevents inserting something else between these?


================
Comment at: llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp:152
+
+        if (CI.Length == 64 ||
+            (CI.Length && Type != HARDCLAUSE_INTERNAL &&
----------------
Probably should use a named constant for the limit


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79792





More information about the llvm-commits mailing list