2003-09-16 17:29:54 +02:00
|
|
|
; RUN: llvm-as < %s | opt -adce
|
2002-05-07 22:51:59 +02:00
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
int "main"(int %argc)
|
|
|
|
begin
|
|
|
|
br label %2
|
|
|
|
|
|
|
|
%retval = phi int [ %argc, %2 ] ; <int> [#uses=2]
|
|
|
|
%two = add int %retval, %retval ; <int> [#uses=1]
|
|
|
|
ret int %two
|
|
|
|
|
|
|
|
br label %1
|
|
|
|
end
|
|
|
|
|