• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -S -slp-vectorizer
2
3; This code has GEPs with different index types, which should not
4; matter for the SLPVectorizer.
5
6target triple = "x86_64--linux"
7
8define void @foo() {
9entry:
10  br label %bb1
11
12bb1:
13  %ls1.ph = phi float* [ %_tmp1, %bb1 ], [ undef, %entry ]
14  %ls2.ph = phi float* [ %_tmp2, %bb1 ], [ undef, %entry ]
15  store float undef, float* %ls1.ph
16  %_tmp1 = getelementptr float, float* %ls1.ph, i32 1
17  %_tmp2 = getelementptr float, float* %ls2.ph, i64 4
18  br i1 false, label %bb1, label %bb2
19
20bb2:
21  ret void
22}
23