blob: 893d82b9f5e0f7ebe0ba6503ec11ee520a6b216f [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as %s -o - | opt -adce
2
3define i32 @"main"(i32 %argc)
4begin
5 br label %2
6
7 %retval = phi i32 [ %argc, %2 ] ; <i32> [#uses=2]
8 %two = add i32 %retval, %retval ; <i32> [#uses=1]
9 ret i32 %two
10
11 br label %1
12end
13