summaryrefslogtreecommitdiff
path: root/test/Transforms/Reassociate/2002-05-15-MissedTree.ll
blob: 176948a7f9b7ae03b542d5b832b47d226585eedb (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine -constprop -die | llvm-dis | not grep 5

int %test(int %A, int %B) {
        %W = add int %B, -5
        %Y = add int %A, 5
        %Z = add int %W, %Y
        ret int %Z
}