brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 088b6fb Raw
39 lines · plain
1; Ensure that llvm-reduce doesn't try to introduce a 0 or 12; into a SwitchInst that already has one of those3 4; RUN: llvm-reduce --delta-passes=operands-zero --test %python --test-arg %p/Inputs/remove-bbs.py -abort-on-invalid-reduction %s -o %t5 6; RUN: llvm-reduce --delta-passes=operands-one --test %python --test-arg %p/Inputs/remove-bbs.py -abort-on-invalid-reduction %s -o %t7 8declare i32 @g()9 10define void @f(ptr %0, i1 %1) {11  %3 = alloca i32, align 412  store ptr null, ptr %0, align 813  %4 = call i32 @g()14  br i1 %1, label %5, label %715 165:                                                ; preds = %217  br label %618 196:                                                ; preds = %520  store i32 0, ptr %3, align 421  br label %interesting222 237:                                                ; preds = %224  br label %interesting225 26interesting2:                                     ; preds = %7, %627  %x9 = load i32, ptr %3, align 428  switch i32 %x9, label %uninteresting [29    i32 3, label %interesting130    i32 12, label %interesting131  ]32 33interesting1:                                     ; preds = %8, %834  ret void35 36uninteresting:                                    ; preds = %837  unreachable38}39