Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; The reassociate pass is not preserving dominance properties correctly |
2 | ; | ||||
Dan Gohman | 3c7d308 | 2009-09-11 18:01:28 +0000 | [diff] [blame] | 3 | ; RUN: opt < %s -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 |