summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SLPVectorizer/X86/gep_mismatch.ll
blob: 1cd28a909f79076f7f0d90df49a8b6e9184db45f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; RUN: opt < %s -S -slp-vectorizer

; This code has GEPs with different index types, which should not
; matter for the SLPVectorizer.

target triple = "x86_64--linux"

define void @foo() {
entry:
  br label %bb1

bb1:
  %ls1.ph = phi float* [ %_tmp1, %bb1 ], [ undef, %entry ]
  %ls2.ph = phi float* [ %_tmp2, %bb1 ], [ undef, %entry ]
  store float undef, float* %ls1.ph
  %_tmp1 = getelementptr float, float* %ls1.ph, i32 1
  %_tmp2 = getelementptr float, float* %ls2.ph, i64 4
  br i1 false, label %bb1, label %bb2

bb2:
  ret void
}
OpenPOWER on IntegriCloud