[llvm] [SandboxVec][Scheduler] Use SchedulingPoint for pointing to scheduling front (PR #208373)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 14:06:38 PDT 2026


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 origin/main HEAD --extensions cpp,h -- llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h llvm/lib/Transforms/Vectorize/SandboxVectorizer/Scheduler.cpp llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SchedulerTest.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h
index 478f03330..e5953c1a1 100644
--- a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h
+++ b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h
@@ -249,7 +249,7 @@ public:
     return std::get<BasicBlock::iterator>(Where);
   }
   operator BasicBlock::iterator() const { return getIterator(); }
-    /// Returns the SchedulingPoint pointing after this.
+  /// Returns the SchedulingPoint pointing after this.
   SchedulingPoint getNext() const {
     assert(!atEndOrNull() && "Expected before/in BB!");
     if (BasicBlock *BB = atBeforeBeginOrNull())
diff --git a/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SchedulerTest.cpp b/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SchedulerTest.cpp
index 494e9db30..f75490a60 100644
--- a/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SchedulerTest.cpp
+++ b/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SchedulerTest.cpp
@@ -1046,12 +1046,13 @@ define void @foo(ptr %ptr, i8 %v0) {
   EXPECT_EQ(sandboxir::SchedulingPoint::createAt(S0->getIterator())
                 .atBeforeBeginOrNull(),
             nullptr);
-  EXPECT_EQ(sandboxir::SchedulingPoint::createAt(BB->end())
-                .atBeforeBeginOrNull(),
-            nullptr);
+  EXPECT_EQ(
+      sandboxir::SchedulingPoint::createAt(BB->end()).atBeforeBeginOrNull(),
+      nullptr);
   // Check atEndOrNull().
   EXPECT_EQ(sandboxir::SchedulingPoint::createAt(BB->end()).atEndOrNull(), BB);
-  EXPECT_EQ(sandboxir::SchedulingPoint::createBefore(BB->end()).atEndOrNull(), nullptr);
+  EXPECT_EQ(sandboxir::SchedulingPoint::createBefore(BB->end()).atEndOrNull(),
+            nullptr);
   EXPECT_EQ(sandboxir::SchedulingPoint::createBefore(BB->begin()).atEndOrNull(),
             nullptr);
   // Check atInstrOrNull().

``````````

</details>


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


More information about the llvm-commits mailing list