Home | History | Annotate | Download | only in X86
      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() {
      6 entry:
      7   invoke void @foo()
      8           to label %inner unwind label %lpad
      9 
     10 inner:
     11   %x0 = fsub double undef, undef
     12   %y0 = fsub double undef, undef
     13   invoke void @foo()
     14           to label %done unwind label %lpad
     15 
     16 lpad:
     17   %x1 = phi double [ undef, %entry ], [ undef, %inner ]
     18   %y1 = phi double [ undef, %entry ], [ undef, %inner ]
     19   landingpad { i8*, i32 } personality i8*
     20           bitcast (i32 (...)* @__gxx_personality_v0 to i8*) 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