brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 4b4a4d0 Raw
29 lines · plain
1; RUN: opt -passes=loop-vectorize -force-vector-width=4 -force-vector-interleave=1 -enable-interleaved-mem-accesses=true -max-dependences=0 -S %s | FileCheck %s2target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"3 4; None of these stores have dependences between them, so we can successfully5; interleave them even though the max-dependences threshold is 0.6define void @three_interleaved_stores(ptr %arr) {7; CHECK-LABEL: define void @three_interleaved_stores8; CHECK:   store <12 x i8>9entry:10  br label %loop11 12loop:13  %i = phi i64 [ 0, %entry ], [ %i.next, %loop ]14  %i.plus.1 = add nuw nsw i64 %i, 115  %i.plus.2 = add nuw nsw i64 %i, 216  %gep.i.plus.0 = getelementptr inbounds i8, ptr %arr, i64 %i17  %gep.i.plus.1 = getelementptr inbounds i8, ptr %arr, i64 %i.plus.118  %gep.i.plus.2 = getelementptr inbounds i8, ptr %arr, i64 %i.plus.219  store i8 1, ptr %gep.i.plus.020  store i8 1, ptr %gep.i.plus.121  store i8 1, ptr %gep.i.plus.222  %i.next = add nuw nsw i64 %i, 323  %icmp = icmp ugt i64 %i, 103224  br i1 %icmp, label %exit, label %loop25 26exit:27  ret void28}29