2003-11-16-MissingPostDominanceInfo.ll 440 B

123456789101112131415161718
  1. ; RUN: opt < %s -adce -simplifycfg -S | grep call
  2. declare void @exit(i32)
  3. define i32 @main(i32 %argc) {
  4. %C = icmp eq i32 %argc, 1 ; <i1> [#uses=2]
  5. br i1 %C, label %Cond, label %Done
  6. Cond: ; preds = %0
  7. br i1 %C, label %Loop, label %Done
  8. Loop: ; preds = %Loop, %Cond
  9. call void @exit( i32 0 )
  10. br label %Loop
  11. Done: ; preds = %Cond, %0
  12. ret i32 1
  13. }