brintos

brintos / llvm-project-archived public Read only

0
0
Text · 598 B · 7edf0d2 Raw
25 lines · plain
1; RUN: opt -S < %s -passes=loop-vectorize -force-vector-width=4 | FileCheck %s2 3declare void @llvm.sideeffect()4 5; Vectorization across a @llvm.sideeffect.6 7; CHECK-LABEL: store_ones8; CHECK: store <4 x float>9define void @store_ones(ptr %p, i64 %n) nounwind {10bb7.lr.ph:11  br label %bb712 13bb7:14  %i.02 = phi i64 [ 0, %bb7.lr.ph ], [ %tmp13, %bb7 ]15  call void @llvm.sideeffect()16  %tmp10 = getelementptr inbounds float, ptr %p, i64 %i.0217  store float 1.0, ptr %tmp10, align 418  %tmp13 = add i64 %i.02, 119  %tmp6 = icmp ult i64 %tmp13, %n20  br i1 %tmp6, label %bb7, label %bb1421 22bb14:23  ret void24}25