[llvm] [DominanceFrontier] Support post-dominators on graphs with single root (PR #179336)
Andrei Elovikov via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 08:48:02 PST 2026
================
@@ -0,0 +1,94 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "../lib/Transforms/Vectorize/VPlan.h"
+
+#include "VPlanTestBase.h"
+#include "llvm/Analysis/DominanceFrontier.h"
+#include "llvm/Analysis/DominanceFrontierImpl.h"
+#include "gtest/gtest.h"
+
+namespace llvm {
----------------
eas wrote:
**All** [tests](https://github.com/search?q=repo%3Allvm%2Fllvm-project+path%3Allvm%2Funittests%2FTransforms%2FVectorize+%22namespace+llvm%22+NOT+path%3A%2F%5Ellvm%5C%2Funittests%5C%2FTransforms%5C%2FVectorize%5C%2FSandboxVectorizer%5C%2F%2F&type=code) in this directory (excluding child SandboxVectorizer) use
```c++
namespace llvm {
namespace {
```
pattern, so I'd prefer to keep the current version.
https://github.com/llvm/llvm-project/pull/179336
More information about the llvm-commits
mailing list