[llvm] [Support] Assert that DomTree nodes share parent (PR #101198)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 11:52:41 PDT 2024


================
@@ -0,0 +1,25 @@
+; RUN: opt -passes=alignment-from-assumptions -disable-output < %s
+
+; REQUIRES: asserts
+
+; The alignment assumption is a global, which has users in a different
+; function. Test that in this case the dominator tree is only queried with
+; blocks from the same function.
+
+target triple = "x86_64-unknown-linux-gnu"
----------------
nikic wrote:

Is this needed?

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


More information about the llvm-commits mailing list