File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
llvm/test/Transforms/LoopVectorize/AArch64 Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ ; RUN: opt < %s -passes=loop-vectorize -S -pass-remarks=loop-vectorize
2+
3+ target triple = "aarch64-unknown-linux-gnu"
4+
5+ define void @reduce_fail (i64 %loop_count , ptr %ptr0 , ptr noalias %ptr1 ) #0 {
6+ entry:
7+ %d1 = load double , ptr %ptr1
8+ %d0 = load double , ptr %ptr0
9+ br label %loop
10+
11+ loop:
12+ %acc0 = phi double [ %fadd0 , %loop ], [ %d0 , %entry ]
13+ %counter = phi i64 [ %counter_updated , %loop ], [ %loop_count , %entry ]
14+ %fadd0 = fadd double %acc0 , %d1
15+ %counter_updated = add nsw i64 %counter , -1
16+ %exit_cond = icmp samesign ugt i64 %counter , 1
17+ br i1 %exit_cond , label %loop , label %loopexit
18+
19+ loopexit:
20+ store double %fadd0 , ptr %ptr1
21+ ret void
22+ }
23+
24+ attributes #0 = { "target-features" ="+sve" }
You can’t perform that action at this time.
0 commit comments