summaryrefslogtreecommitdiff
path: root/test/Transforms/Reassociate/2002-05-15-MissedTree.ll
blob: fce2cdec0ee3e011bf3e6d83ac168b058d995cc4 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | 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
}