brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 1a3c9a2 Raw
38 lines · plain
1; Test after FoldValueComparisonIntoPredecessors, one dangling probe is gone2; RUN: opt -S -passes='pseudo-probe,simplifycfg' < %s | FileCheck %s3 4 5; CHECK: if.end80:                                         ; preds = %if.end6; CHECK-NEXT:   call void @llvm.pseudoprobe(i64 -2281696412744416103, i64 3, i32 0, i64 -1)7; CHECK-NOT:   call void @llvm.pseudoprobe(i64 -2281696412744416103, i64 48 9define dso_local i32 @readCBPandCoeffsFromNAL(i1 %c, i32 %x, i32 %y) local_unnamed_addr {10;11if.end:12  br i1 %c, label %if.end80, label %if.then6413 14if.then64:                                        ; preds = %if.end15  ret i32 %y16 17if.end80:                                         ; preds = %if.end18  switch i32 %x, label %lor.lhs.false89 [19  i32 10, label %if.end17223720  i32 14, label %if.end17223721  i32 9, label %if.end17222  ]23 24lor.lhs.false89:                                  ; preds = %lor.lhs.false89, %if.end8025  %cmp91 = icmp eq i32 %x, 1226  br i1 %cmp91, label %if.end172, label %lor.lhs.false8927 28if.end172:                                        ; preds = %lor.lhs.false89, %if.end8029  br label %if.end23930 31if.end172237:                                     ; preds = %if.end80, %if.end8032  br label %if.end23933 34if.end239:                                        ; preds = %if.end172237, %if.end17235  %cbp.0 = phi i32 [ 1, %if.end172237 ], [ 0, %if.end172 ]36  ret i32 %cbp.037}38