[llvm-branch-commits] [llvm] [AMDGPU] Fix DomTree preservation in SILowerControlFlow when nodes are removed (PR #176691)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Jan 18 23:22:08 PST 2026


================
@@ -0,0 +1,59 @@
+# RUN: llc -o /dev/null -mcpu=gfx1201 -mtriple=amdgcn-amd-amdhsa -passes="require<machine-post-dom-tree>,si-lower-control-flow,print<machine-post-dom-tree>" %s 2>&1 | FileCheck %s
+
+# CHECK: Inorder PostDominator Tree: 
+# CHECK-NEXT:   [1]  <<exit node>> {4294967295,4294967295} [0]
+# CHECK-NEXT:     [2] %bb.4 {4294967295,4294967295} [1]
+# CHECK-NEXT:       [3] %bb.2 {4294967295,4294967295} [2]
+# CHECK-NEXT:       [3] %bb.0 {4294967295,4294967295} [2]
+# CHECK-NEXT:       [3] %bb.1 {4294967295,4294967295} [2]
+
+---
+name:            preserve_dom_tree
+body:             |
+  bb.0.entry:
+    successors: %bb.1(0x40000000), %bb.4(0x40000000)
+    liveins: $vgpr0, $sgpr0_sgpr1, $ttmp9
+  
+    %6:sreg_32 = COPY $ttmp9
----------------
arsenm wrote:

Compact register numbers 

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


More information about the llvm-branch-commits mailing list