repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ARM] Better OR's for MVE compares
[llvm-core.git]
/
test
/
Transforms
/
Reassociate
/
2002-05-15-MissedTree.ll
blob
5f3c9209aedab7b6c5fc08deec8f07662fc43793
1
; RUN: opt < %s -reassociate -instcombine -S | FileCheck %s
2
3
define i32 @test1(i32 %A, i32 %B) {
4
; CHECK-LABEL: test1
5
; CHECK: %Z = add i32 %B, %A
6
; CHECK: ret i32 %Z
7
%W = add i32 %B, -5
8
%Y = add i32 %A, 5
9
%Z = add i32 %W, %Y
10
ret i32 %Z
11
}