[llvm] [MachineScheduler] Experimental option to partially disable pre-ra scheduling. (PR #90181)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 02:08:53 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff f0cbdd3e352a1d45965be686f48eee51159bb218 3d2fa294f440e97d2aec1bce8aabb8e5c91c8f82 -- llvm/include/llvm/CodeGen/MachineScheduler.h llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h llvm/lib/CodeGen/MachineScheduler.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h b/llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h
index 6594048b8f..789948aced 100644
--- a/llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h
+++ b/llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h
@@ -322,7 +322,9 @@ namespace llvm {
     virtual bool disableForRegion(MachineBasicBlock *bb,
                                   MachineBasicBlock::iterator begin,
                                   MachineBasicBlock::iterator end,
-                                  unsigned regioninstrs) const { return false; }
+                                  unsigned regioninstrs) const {
+      return false;
+    }
 
     /// Called when the scheduler has finished scheduling the current region.
     virtual void exitRegion();
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 95a74a6bbb..f35648e4ee 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -1264,7 +1264,7 @@ bool ScheduleDAGMILive::disableForRegion(MachineBasicBlock *bb,
                                          unsigned regioninstrs) const {
   if (NumRegionInstrs > NoSchedAbove) {
     LLVM_DEBUG(dbgs() << "Disabling pre-ra mischeduling of region with "
-               << NumRegionInstrs << " instructions\n";);
+                      << NumRegionInstrs << " instructions\n";);
     return true;
   }
   return false;

``````````

</details>


https://github.com/llvm/llvm-project/pull/90181


More information about the llvm-commits mailing list