brintos

brintos / llvm-project-archived public Read only

0
0
Text · 573 B · d93d79e Raw
20 lines · plain
1;; Test strip branch_weight if operand number doesn't match.2;; Input bitcode is generated from:3;; define void @test(i1 %0) {4;;   br i1 %0, label %2, label %3, !prof !05;; 2:6;;   br i1 %0, label %4, label %3, !prof !17;; 3:8;;   unreachable9;; 4:10;;   ret void11;; }12;;!0 = !{!"branch_weights", i32 1, i32 2}13;;!1 = !{!"branch_weights", i32 1, i32 2, i32 3}14 15; RUN: llvm-dis %S/Inputs/branch-weight.bc -o - | FileCheck %s16; CHECK: !prof !017; CHECK: !0 = !{!"branch_weights", i32 1, i32 2}18; CHECK-NOT: !prof !119; CHECK-NOT: !1 = !{!"branch_weights", i32 1, i32 2, i32 3}20