brintos

brintos / llvm-project-archived public Read only

0
0
Text · 787 B · ab10d62 Raw
30 lines · plain
1; RUN: opt -passes=loop-vectorize -force-vector-width=4 %s | FileCheck %s2 3%struct.foo = type { [400 x double] }4 5; Make sure we do not crash when dropping runtime checks.6 7; CHECK-NOT: vector.body8 9define void @barney(ptr %ptr) {10entry:11  br label %loop12 13loop:14  %tmp3 = phi i64 [ 0, %entry ], [ %tmp18, %loop ]15  %tmp4 = getelementptr inbounds %struct.foo, ptr %ptr16  store i64 0, ptr %tmp4, align 817  %tmp8 = add i64 1, %tmp318  %tmp10 = getelementptr inbounds %struct.foo, ptr %ptr, i64 %tmp819  store i64 1, ptr %tmp10, align 820  %tmp14 = add i64 3, %tmp321  %tmp16 = getelementptr inbounds %struct.foo, ptr %ptr, i64 %tmp1422  store i64 2, ptr %tmp16, align 823  %tmp18 = add nuw nsw i64 %tmp3, 424  %c = icmp ult i64 %tmp18, 40025  br i1 %c, label %exit, label %loop26 27exit:28  ret void29}30