blob: 43462faa47f637fd48b0d1e1c9190b79d8e33b6d [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: opt < %s -adce
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
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