X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FTransforms%2FReassociate%2F2002-05-15-MissedTree.ll;h=5f3c9209aedab7b6c5fc08deec8f07662fc43793;hb=12d60e9e7c149a7d333e277dfbe25a720c88c585;hp=7829fa3f432607749c57040e07927889212e0583;hpb=b1e1e82c54c060ea5dae09dae043234826ca2539;p=oota-llvm.git diff --git a/test/Transforms/Reassociate/2002-05-15-MissedTree.ll b/test/Transforms/Reassociate/2002-05-15-MissedTree.ll index 7829fa3f432..5f3c9209aed 100644 --- a/test/Transforms/Reassociate/2002-05-15-MissedTree.ll +++ b/test/Transforms/Reassociate/2002-05-15-MissedTree.ll @@ -1,9 +1,11 @@ -; RUN: opt %s -reassociate -instcombine -constprop -die | llvm-dis | not grep 5 +; RUN: opt < %s -reassociate -instcombine -S | FileCheck %s -define i32 @test(i32 %A, i32 %B) { - %W = add i32 %B, -5 ; [#uses=1] - %Y = add i32 %A, 5 ; [#uses=1] - %Z = add i32 %W, %Y ; [#uses=1] +define i32 @test1(i32 %A, i32 %B) { +; CHECK-LABEL: test1 +; CHECK: %Z = add i32 %B, %A +; CHECK: ret i32 %Z + %W = add i32 %B, -5 + %Y = add i32 %A, 5 + %Z = add i32 %W, %Y ret i32 %Z } -