[PATCH] D95136: [X86] Fix tile config register spill issue.

Xiang Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 17:51:43 PST 2021


xiangzhangllvm added inline comments.


================
Comment at: llvm/lib/Target/X86/X86PreTileConfig.cpp:283
+    // But iterating all BBs isn't too expensive here.
+    for (auto I : BBVisitedInfo) {
+      if (I.second.NeedUpdatePred)
----------------
I am not sure the order of iterate  BBVisitedInfo is right.
In map it may use "<" to sort its elements.


================
Comment at: llvm/lib/Target/X86/X86PreTileConfig.cpp:292
+        if (BBVisitedInfo[MBB].LastAMX)
+          S = HasBeforeCallAMX;
+        if (BBVisitedInfo[MBB].HasCallBeforeAMX)
----------------
What does HasBeforeCallAMX really mean, why set it once BB has AMX ?


================
Comment at: llvm/lib/Target/X86/X86PreTileConfig.cpp:298
+          if (!BBVisitedInfo.count(*I))
+            continue;
+          if (S > BBVisitedInfo[*I].MaxSucc) {
----------------
Not sure directly continue is right, if the status required by the visited predecessors.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D95136



More information about the llvm-commits mailing list