35 lines · plain
1; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=functions --test FileCheck --test-arg --check-prefixes=INTERESTING --test-arg %s --test-arg --input-file %s -o %t2; RUN: FileCheck --check-prefixes=RESULT --input-file=%t %s3 4; INTERESTING: @blockaddr.table.other5 6; RESULT: @blockaddr.table.other = private unnamed_addr constant [2 x ptr] [ptr inttoptr (i32 1 to ptr), ptr inttoptr (i32 1 to ptr)]7 8 9@blockaddr.table.other = private unnamed_addr constant [2 x ptr] [ptr blockaddress(@bar, %L1), ptr blockaddress(@bar, %L2)]10 11 12; RESULT-NOT: define i32 @bar(13define i32 @bar(i64 %arg0) {14entry:15 %gep = getelementptr inbounds [2 x ptr], ptr @blockaddr.table.other, i64 0, i64 %arg016 %load = load ptr, ptr %gep, align 817 indirectbr ptr %load, [label %L2, label %L1]18 19L1:20 %phi = phi i32 [ 1, %L2 ], [ 2, %entry ]21 ret i32 %phi22 23L2:24 br label %L125}26 27; RESULT-NOT: @unused28define void @unused() {29entry:30 br label %exit31 32exit:33 ret void34}35