1 ; Test after FoldValueComparisonIntoPredecessors, one dangling probe is gone
2 ; RUN: opt -S -passes='pseudo-probe,simplifycfg' < %s | FileCheck %s
5 ; CHECK: if.end80: ; preds = %if.end
6 ; CHECK-NEXT: call void @llvm.pseudoprobe(i64 -2281696412744416103, i64 3, i32 0, i64 -1)
7 ; CHECK-NOT: call void @llvm.pseudoprobe(i64 -2281696412744416103, i64 4
9 define dso_local i32 @readCBPandCoeffsFromNAL(i1 %c, i32 %x, i32 %y) local_unnamed_addr {
12 br i1 %c, label %if.end80, label %if.then64
14 if.then64: ; preds = %if.end
17 if.end80: ; preds = %if.end
18 switch i32 %x, label %lor.lhs.false89 [
19 i32 10, label %if.end172237
20 i32 14, label %if.end172237
21 i32 9, label %if.end172
24 lor.lhs.false89: ; preds = %lor.lhs.false89, %if.end80
25 %cmp91 = icmp eq i32 %x, 12
26 br i1 %cmp91, label %if.end172, label %lor.lhs.false89
28 if.end172: ; preds = %lor.lhs.false89, %if.end80
31 if.end172237: ; preds = %if.end80, %if.end80
34 if.end239: ; preds = %if.end172237, %if.end172
35 %cbp.0 = phi i32 [ 1, %if.end172237 ], [ 0, %if.end172 ]