[llvm] [JumpThreading] Thread over BB with only an unconditional branch (PR #86312)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 23 02:15:24 PDT 2024
================
@@ -8,11 +8,11 @@ define i1 @if_else(i1 %c, i1 %c1) {
; CHECK-NEXT: br i1 [[C]], label [[THEN:%.*]], label [[RETURN:%.*]]
; CHECK: then:
; CHECK-NEXT: call void @dummy()
-; CHECK-NEXT: br i1 [[C1]], label [[RETURN]], label [[RETURN1:%.*]]
+; CHECK-NEXT: br i1 [[C1]], label [[ELSE:%.*]], label [[RETURN]]
----------------
XChy wrote:
I will add the tests to SimplifyCFG, which also call the same function to thread it.
https://github.com/llvm/llvm-project/pull/86312
More information about the llvm-commits
mailing list