Sign in
llvm
/
llvm-project
/
llvm
/
b72b4128f221fd5086a1ae46aba7b2fcbf0d6384
/
.
/
test
/
Transforms
/
Reassociate
/
2002-05-15-AgressiveSubMove.ll
blob: d8a73fb408594e5a720f4dae22c67141d7cadc8b [
file
] [
log
] [
blame
]
; RUN: opt < %s -passes=reassociate -S | FileCheck %s
define
i32
@test1
(
i32
%A
)
{
; CHECK-LABEL: test1
; CHECK: ret i32 0
%X
=
add
i32
%A
,
1
%Y
=
add
i32
%A
,
1
%r
=
sub
i32
%X
,
%Y
ret
i32
%r
}