Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; Uninitialized values are not handled correctly. |
2 | ; | ||||
Tanya Lattner | 97b38e1 | 2008-03-19 05:39:35 +0000 | [diff] [blame] | 3 | ; RUN: llvm-as < %s | opt -mem2reg |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 4 | ; |
5 | |||||
Tanya Lattner | 97b38e1 | 2008-03-19 05:39:35 +0000 | [diff] [blame] | 6 | define i32 @test() { |
7 | ; To be promoted | ||||
8 | %X = alloca i32 ; <i32*> [#uses=1] | ||||
9 | %Y = load i32* %X ; <i32> [#uses=1] | ||||
10 | ret i32 %Y | ||||
11 | } |