blob: 1c881b95156d83f24b87f89a30cdc46c742dfc9d [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Uninitialized values are not handled correctly.
2;
Tanya Lattner97b38e12008-03-19 05:39:35 +00003; RUN: llvm-as < %s | opt -mem2reg
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004;
5
Tanya Lattner97b38e12008-03-19 05:39:35 +00006define 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}