2005-10-02-InvokeSimplify.ll 455 B

123456789101112131415161718
  1. ; RUN: opt < %s -simplifycfg -disable-output
  2. define i1 @foo() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
  3. %X = invoke i1 @foo( )
  4. to label %N unwind label %F ; <i1> [#uses=1]
  5. F: ; preds = %0
  6. %val = landingpad { i8*, i32 }
  7. catch i8* null
  8. ret i1 false
  9. N: ; preds = %0
  10. br i1 %X, label %A, label %B
  11. A: ; preds = %N
  12. ret i1 true
  13. B: ; preds = %N
  14. ret i1 true
  15. }
  16. declare i32 @__gxx_personality_v0(...)