Sign in
swiftshader
/
SwiftShader
/
6d8a9c590745cfdbf15379ef75ec8ca56fb327d2
/
.
/
third_party
/
llvm-7.0
/
llvm
/
test
/
Transforms
/
Reassociate
/
2002-05-15-AgressiveSubMove.ll
blob: 24300352a62c3cad74741b5c60567ac754d18d3f [
file
] [
log
] [
blame
]
; RUN: opt < %s -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
}