Make the test a bit harder so that we test to ensure that _both_ instructions
authorChris Lattner <sabre@nondot.org>
Tue, 9 Dec 2003 20:50:20 +0000 (20:50 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 9 Dec 2003 20:50:20 +0000 (20:50 +0000)
are sunk

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10343 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/LICM/sink_inst.ll

index 8f8722c0b93747e43fec6dcab6303a5be198512f..a4d5c3de21dee2afc4600f2e4017a6e111e30a5b 100644 (file)
@@ -10,9 +10,10 @@ Entry:
 Loop:
         %N_addr.0.pn = phi int [ %dec, %Loop ], [ %N, %Entry ]
         %tmp.6 = mul int %N, %N_addr.0.pn
+        %tmp.7 = sub int %tmp.6, %N
         %dec = add int %N_addr.0.pn, -1
         %tmp.1 = setne int %N_addr.0.pn, 1
         br bool %tmp.1, label %Loop, label %Out
 Out:
-       ret int %tmp.6
+       ret int %tmp.7
 }