1 ; RUN: opt -S -passes=slp-vectorizer -mtriple=aarch64--linux-gnu -mcpu=generic -pass-remarks=slp-vectorizer -o /dev/null < %s 2>&1 | FileCheck %s
3 define void @f(ptr %r, ptr %w) {
4 %r1 = getelementptr inbounds double, ptr %r, i64 1
5 %f0 = load double, ptr %r
6 %f1 = load double, ptr %r1
7 %add0 = fadd double %f0, %f0
8 %add1 = fadd double %f1, %f1
9 %w1 = getelementptr inbounds double, ptr %w, i64 1
10 ; CHECK: remark: /tmp/s.c:5:10: Stores SLP vectorized with cost -3 and with tree size 3
11 store double %add0, ptr %w, !dbg !9
12 store double %add1, ptr %w1
18 !llvm.module.flags = !{!3, !4, !5}
21 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 4.0.0 (trunk 281293) (llvm/trunk 281290)", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly, enums: !2)
22 !1 = !DIFile(filename: "/tmp/s.c", directory: "/tmp")
24 !3 = !{i32 2, !"Dwarf Version", i32 4}
25 !4 = !{i32 2, !"Debug Info Version", i32 3}
26 !5 = !{i32 1, !"PIC Level", i32 2}
27 !6 = !{!"clang version 4.0.0 (trunk 281293) (llvm/trunk 281290)"}
28 !7 = distinct !DISubprogram(name: "baz", scope: !1, file: !1, line: 4, type: !8, isLocal: false, isDefinition: true, scopeLine: 4, isOptimized: true, unit: !0, retainedNodes: !2)
29 !8 = !DISubroutineType(types: !2)
30 !9 = !DILocation(line: 5, column: 10, scope: !7)