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