1; RUN: opt < %s -slp-vectorizer -mtriple=x86_64-apple-macosx10.9.0 -disable-output
2
3target datalayout = "f64:64:64-v64:64:64"
4
5define void @test_phi_in_landingpad() personality i8*
6          bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
7entry:
8  invoke void @foo()
9          to label %inner unwind label %lpad
10
11inner:
12  %x0 = fsub double undef, undef
13  %y0 = fsub double undef, undef
14  invoke void @foo()
15          to label %done unwind label %lpad
16
17lpad:
18  %x1 = phi double [ undef, %entry ], [ undef, %inner ]
19  %y1 = phi double [ undef, %entry ], [ undef, %inner ]
20  landingpad { i8*, i32 } catch i8* null
21  br label %done
22
23done:
24  phi double [ %x0, %inner ], [ %x1, %lpad ]
25  phi double [ %y0, %inner ], [ %y1, %lpad ]
26  ret void
27}
28
29declare void @foo()
30
31declare i32 @__gxx_personality_v0(...)
32