File: disable_slp.ll

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (77 lines) | stat: -rw-r--r-- 3,468 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
; RUN: opt < %s -passes=slp-vectorizer -mtriple=ve-linux -S | FileCheck %s -check-prefix=VE 
; RUN: opt < %s -passes=slp-vectorizer -mtriple=x86_64-pc_linux -mcpu=core-avx2 -S | FileCheck %s -check-prefix=SSE

; Make sure SLP does not trigger for VE on an appealing set of combinable loads
; and stores that vectorizes for x86 SSE.

; TODO: Remove this test once VE vector isel is deemed stable.

; VE-NOT: x double
; SSE: x double

define void @foo(ptr noalias %A0p, ptr noalias %B0p) {
entry:
  %A1p = getelementptr inbounds double, ptr %A0p, i64 1
  %A2p = getelementptr inbounds double, ptr %A0p, i64 2
  %A3p = getelementptr inbounds double, ptr %A0p, i64 3
  %A4p = getelementptr inbounds double, ptr %A0p, i64 4
  %A5p = getelementptr inbounds double, ptr %A0p, i64 5
  %A6p = getelementptr inbounds double, ptr %A0p, i64 6
  %A7p = getelementptr inbounds double, ptr %A0p, i64 7
  %A8p = getelementptr inbounds double, ptr %A0p, i64 8
  %A9p = getelementptr inbounds double, ptr %A0p, i64 9
  %A10p = getelementptr inbounds double, ptr %A0p, i64 10
  %A11p = getelementptr inbounds double, ptr %A0p, i64 11
  %A12p = getelementptr inbounds double, ptr %A0p, i64 12
  %A13p = getelementptr inbounds double, ptr %A0p, i64 13
  %A14p = getelementptr inbounds double, ptr %A0p, i64 14
  %A15p = getelementptr inbounds double, ptr %A0p, i64 15
  %A0 = load double, ptr %A0p, align 8
  %A1 = load double, ptr %A1p, align 8
  %A2 = load double, ptr %A2p, align 8
  %A3 = load double, ptr %A3p, align 8
  %A4 = load double, ptr %A4p, align 8
  %A5 = load double, ptr %A5p, align 8
  %A6 = load double, ptr %A6p, align 8
  %A7 = load double, ptr %A7p, align 8
  %A8 = load double, ptr %A8p, align 8
  %A9 = load double, ptr %A9p, align 8
  %A10 = load double, ptr %A10p, align 8
  %A11 = load double, ptr %A11p, align 8
  %A12 = load double, ptr %A12p, align 8
  %A13 = load double, ptr %A13p, align 8
  %A14 = load double, ptr %A14p, align 8
  %A15 = load double, ptr %A15p, align 8
  %B1p = getelementptr inbounds double, ptr %B0p, i64 1
  %B2p = getelementptr inbounds double, ptr %B0p, i64 2
  %B3p = getelementptr inbounds double, ptr %B0p, i64 3
  %B4p = getelementptr inbounds double, ptr %B0p, i64 4
  %B5p = getelementptr inbounds double, ptr %B0p, i64 5
  %B6p = getelementptr inbounds double, ptr %B0p, i64 6
  %B7p = getelementptr inbounds double, ptr %B0p, i64 7
  %B8p = getelementptr inbounds double, ptr %B0p, i64 8
  %B9p = getelementptr inbounds double, ptr %B0p, i64 9
  %B10p = getelementptr inbounds double, ptr %B0p, i64 10
  %B11p = getelementptr inbounds double, ptr %B0p, i64 11
  %B12p = getelementptr inbounds double, ptr %B0p, i64 12
  %B13p = getelementptr inbounds double, ptr %B0p, i64 13
  %B14p = getelementptr inbounds double, ptr %B0p, i64 14
  %B15p = getelementptr inbounds double, ptr %B0p, i64 15
  store double %A0, ptr %B0p, align 8
  store double %A1, ptr %B1p, align 8
  store double %A2, ptr %B2p, align 8
  store double %A3, ptr %B3p, align 8
  store double %A4, ptr %B4p, align 8
  store double %A5, ptr %B5p, align 8
  store double %A6, ptr %B6p, align 8
  store double %A7, ptr %B7p, align 8
  store double %A8, ptr %B8p, align 8
  store double %A9, ptr %B9p, align 8
  store double %A10, ptr %B10p, align 8
  store double %A11, ptr %B11p, align 8
  store double %A12, ptr %B12p, align 8
  store double %A13, ptr %B13p, align 8
  store double %A14, ptr %B14p, align 8
  store double %A15, ptr %B15p, align 8
  ret void
}