1*bd524955SHongtao Yu; Test after FoldValueComparisonIntoPredecessors, one dangling probe is gone 26539a80bSwlei; RUN: opt -S -passes='pseudo-probe,simplifycfg' < %s | FileCheck %s 36539a80bSwlei 46539a80bSwlei 56539a80bSwlei; CHECK: if.end80: ; preds = %if.end 66539a80bSwlei; CHECK-NEXT: call void @llvm.pseudoprobe(i64 -2281696412744416103, i64 3, i32 0, i64 -1) 7*bd524955SHongtao Yu; CHECK-NOT: call void @llvm.pseudoprobe(i64 -2281696412744416103, i64 4 86539a80bSwlei 96539a80bSwleidefine dso_local i32 @readCBPandCoeffsFromNAL(i1 %c, i32 %x, i32 %y) local_unnamed_addr { 106539a80bSwlei; 116539a80bSwleiif.end: 126539a80bSwlei br i1 %c, label %if.end80, label %if.then64 136539a80bSwlei 146539a80bSwleiif.then64: ; preds = %if.end 156539a80bSwlei ret i32 %y 166539a80bSwlei 176539a80bSwleiif.end80: ; preds = %if.end 186539a80bSwlei switch i32 %x, label %lor.lhs.false89 [ 196539a80bSwlei i32 10, label %if.end172237 206539a80bSwlei i32 14, label %if.end172237 216539a80bSwlei i32 9, label %if.end172 226539a80bSwlei ] 236539a80bSwlei 246539a80bSwleilor.lhs.false89: ; preds = %lor.lhs.false89, %if.end80 256539a80bSwlei %cmp91 = icmp eq i32 %x, 12 266539a80bSwlei br i1 %cmp91, label %if.end172, label %lor.lhs.false89 276539a80bSwlei 286539a80bSwleiif.end172: ; preds = %lor.lhs.false89, %if.end80 296539a80bSwlei br label %if.end239 306539a80bSwlei 316539a80bSwleiif.end172237: ; preds = %if.end80, %if.end80 326539a80bSwlei br label %if.end239 336539a80bSwlei 346539a80bSwleiif.end239: ; preds = %if.end172237, %if.end172 356539a80bSwlei %cbp.0 = phi i32 [ 1, %if.end172237 ], [ 0, %if.end172 ] 366539a80bSwlei ret i32 %cbp.0 376539a80bSwlei} 38