Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep call |
| 2 | |
| 3 | declare void %bar() |
| 4 | |
| 5 | void %test(int %X, int %Y) { |
| 6 | entry: |
| 7 | %tmp.2 = setlt int %X, %Y ; <bool> [#uses=2] |
| 8 | br bool %tmp.2, label %shortcirc_next, label %UnifiedReturnBlock |
| 9 | |
| 10 | shortcirc_next: ; preds = %entry |
| 11 | br bool %tmp.2, label %UnifiedReturnBlock, label %then |
| 12 | |
| 13 | then: ; preds = %shortcirc_next |
| 14 | call void %bar( ) |
| 15 | ret void |
| 16 | |
| 17 | UnifiedReturnBlock: ; preds = %entry, %shortcirc_next |
| 18 | ret void |
| 19 | } |
| 20 | |