Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; The reassociate pass is not preserving dominance properties correctly |
| 2 | ; |
Tanya Lattner | 028031a | 2008-03-19 04:36:04 +0000 | [diff] [blame^] | 3 | ; RUN: llvm-as < %s | opt -reassociate |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 4 | |
Tanya Lattner | 028031a | 2008-03-19 04:36:04 +0000 | [diff] [blame^] | 5 | define i32 @compute_dist(i32 %i, i32 %j) { |
| 6 | %reg119 = sub i32 %j, %i ; <i32> [#uses=1] |
| 7 | ret i32 %reg119 |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | |