repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-complete.git]
/
test
/
Transforms
/
Reassociate
/
2002-05-15-AgressiveSubMove.ll
blob
24300352a62c3cad74741b5c60567ac754d18d3f
1
; RUN: opt < %s -reassociate -S | FileCheck %s
2
3
define i32 @test1(i32 %A) {
4
; CHECK-LABEL: test1
5
; CHECK: ret i32 0
6
%X = add i32 %A, 1
7
%Y = add i32 %A, 1
8
%r = sub i32 %X, %Y
9
ret i32 %r
10
}