[llvm] [AMDGPU] Improve StructurizeCFG pass performance by using SSAUpdaterBulk. (PR #130611)

Valery Pykhtin via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 10 07:20:41 PDT 2025


================
@@ -69,13 +69,13 @@ define amdgpu_kernel void @loop_subregion_misordered(ptr addrspace(1) %arg0) #0
 ; CHECK-NEXT:    [[TMP5:%.*]] = phi i1 [ [[CMP_END_ELSE_BLOCK:%.*]], [[END_ELSE_BLOCK]] ], [ true, [[FLOW2]] ]
 ; CHECK-NEXT:    br i1 [[TMP5]], label [[FLOW4:%.*]], label [[LOOP_HEADER]]
 ; CHECK:       Flow4:
-; CHECK-NEXT:    br i1 [[TMP7:%.*]], label [[BB64:%.*]], label [[RETURN:%.*]]
+; CHECK-NEXT:    br i1 false, label [[BB64:%.*]], label [[RETURN:%.*]]
----------------
vpykhtin wrote:

PSDB is to be run yet.

I have restored the check on lines 641-642, it was deleted in the original patch:

      if (!Dominator.resultIsRememberedBlock())
        PhiInserter.AddAvailableValue(Variable, Dominator.result(), Default);

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


More information about the llvm-commits mailing list