brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · af36e92 Raw
52 lines · plain
1; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=basic-blocks --test=FileCheck --test-arg=--check-prefix=CHECK-INTERESTINGNESS --test-arg=%s --test-arg=--input-file %s -o %t2; RUN: FileCheck %s < %t3 4; Make sure an invalid reduction isn't tried when deleting %bb5,5; causing the or in %bb6 to use its own output value.6 7 8; CHECK-INTERESTINGNESS: store i32 09; CHECK-INTERESTINGNESS: store i32 110; CHECK-INTERESTINGNESS: store i32 211 12; CHECK: store i32 013; CHECK-NEXT: br label %bb514 15; CHECK: bb5:16; CHECK-NEXT: switch17 18; CHECK: bb6:19; CHECK-NEXT: %tmp = phi i32 [ %tmp7, %bb6 ]20; CHECK-NEXT: store i32 121; CHECK-NEXT: %tmp7 = or i32 %tmp, 022; CHECK-NEXT: br label %bb623 24; CHECK-NOT: bb725; CHECK: bb8:26; CHECK-NEXT: store i32 2,27define amdgpu_kernel void @snork(i32 %arg, i1 %arg1) {28bb:29  store i32 0, ptr addrspace(3) null30  br i1 %arg1, label %bb5, label %bb731 32bb5:                                              ; preds = %bb5, %bb33  switch i32 %arg, label %bb5 [34    i32 0, label %bb835    i32 1, label %bb636  ]37 38bb6:                                              ; preds = %bb6, %bb539  %tmp = phi i32 [ %tmp7, %bb6 ], [ 0, %bb5 ]40  store i32 1, ptr addrspace(3) null41  %tmp7 = or i32 %tmp, 042  br label %bb643 44bb7:45  store i32 3, ptr addrspace(3) null46  br label %bb847 48bb8:                                              ; preds = %bb549  store i32 2, ptr addrspace(3) null50  unreachable51}52