brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · de08e33 Raw
53 lines · plain
1; REQUIRES: asserts2; RUN: opt -p loop-vectorize -debug-only=loop-vectorize --disable-output -S %s 2>&1 | FileCheck %s3 4 5; CHECK-LABEL: LV: Checking a loop in 'latch_exit_cannot_compute_btc_due_to_step'6; CHECK: 	   LV: Did not find one integer induction var.7; CHECK-NEXT:  LV: Not vectorizing: Cannot vectorize uncountable loop.8; CHECK-NEXT:  LV: Interleaving disabled by the pass manager9; CHECK-NEXT:  LV: Not vectorizing: Cannot prove legality.10 11; CHECK-LABEL: LV: Checking a loop in 'header_exit_cannot_compute_btc_due_to_step'12; CHECK:       LV: Found an induction variable.13; CHECK-NEXT:  LV: Did not find one integer induction var.14; CHECK-NEXT:  LV: Not vectorizing: Cannot vectorize uncountable loop.15; CHECK-NEXT:  LV: Interleaving disabled by the pass manager16; CHECK-NEXT:  LV: Not vectorizing: Cannot prove legality.17 18; CHECK-NOT: vector.body19define void @latch_exit_cannot_compute_btc_due_to_step(ptr %dst, i64 %step) {20entry:21  br label %loop22 23loop:                                   ; preds = %loop, %for.cond.us24  %iv = phi i64 [ 0, %entry ], [ %iv.next, %loop ]25  %iv.next = add i64 %iv, %step26  %gep = getelementptr i8, ptr %dst, i64 %iv27  store i8 0, ptr %gep, align 128  %ec = icmp eq i64 %iv.next, 100029  br i1 %ec, label %loop, label %exit30 31exit:32  ret void33}34 35define void @header_exit_cannot_compute_btc_due_to_step(ptr %dst, i64 %step) {36entry:37  br label %loop.header38 39loop.header:40  %iv = phi i64 [ 0, %entry ], [ %iv.next, %loop.latch ]41  %iv.next = add i64 %iv, %step42  %ec = icmp eq i64 %iv.next, 100043  br i1 %ec, label %loop.latch, label %exit44 45loop.latch:46  %gep = getelementptr i8, ptr %dst, i64 %iv47  store i8 0, ptr %gep, align 148  br label %loop.header49 50exit:51  ret void52}53