Chris Lattner | 13e40b4 | 2002-07-30 00:10:05 +0000 | [diff] [blame^] | 1 | ; This testcase fails because ADCE does not correctly delete the chain of |
| 2 | ; three instructions that are dead here. Ironically there were a dead basic |
| 3 | ; block in this function, it would work fine, but that would be the part we |
| 4 | ; have to fix now, wouldn't it.... |
| 5 | ; |
| 6 | ; RUN: as < %s | opt -adce |
Chris Lattner | d45d18d | 2002-07-23 18:27:20 +0000 | [diff] [blame] | 7 | |
Chris Lattner | 13e40b4 | 2002-07-30 00:10:05 +0000 | [diff] [blame^] | 8 | void %foo(sbyte* %reg5481) { |
| 9 | %cast611 = cast sbyte* %reg5481 to sbyte** ; <sbyte**> [#uses=1] |
| 10 | %reg162 = load sbyte** %cast611 ; <sbyte*> [#uses=0] |
| 11 | cast sbyte*%reg162 to int |
| 12 | ret void |
Chris Lattner | d45d18d | 2002-07-23 18:27:20 +0000 | [diff] [blame] | 13 | } |