================
@@ -33,9 +33,14 @@ define internal void @dead_fn2() {
 }
 
 define void @test(i1 %c) {
-; CHECK-LABEL: @test(
-; CHECK-NEXT:    tail call fastcc void @capture_and_trap()
-; CHECK-NEXT:    unreachable
+; DEFAULT-LABEL: @test(
+; DEFAULT-NEXT:  unreachable.merge:
+; DEFAULT-NEXT:    tail call fastcc void @capture_and_trap()
+; DEFAULT-NEXT:    unreachable
+;
+; LTO-LABEL: @test(
+; LTO-NEXT:    tail call fastcc void @capture_and_trap()
+; LTO-NEXT:    unreachable
 ;
   br i1 %c, label %if, label %else
----------------
sivakusayan wrote:

Oh I see, of course the Godbolt link I gave previously would work since we can 
merge duplicate blocks. I'm guessing you're trying to handle cases [like 
this](https://godbolt.org/z/xW19WK18d)?

https://github.com/llvm/llvm-project/pull/214799
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to