aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-09 20:50:20 +0000
committerChris Lattner <sabre@nondot.org>2003-12-09 20:50:20 +0000
commit8f25f4684389b39b0ca6014fafe64708343e40a9 (patch)
treebbd75e6afbbc24e25ca73f86a086ef3026080cdd
parented6dfc2856cd44a8aa608a9074eabbf42dd6cadc (diff)
downloadexternal_llvm-8f25f4684389b39b0ca6014fafe64708343e40a9.zip
external_llvm-8f25f4684389b39b0ca6014fafe64708343e40a9.tar.gz
external_llvm-8f25f4684389b39b0ca6014fafe64708343e40a9.tar.bz2
Make the test a bit harder so that we test to ensure that _both_ instructions
are sunk git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10343 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/LICM/sink_inst.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Transforms/LICM/sink_inst.ll b/test/Transforms/LICM/sink_inst.ll
index 8f8722c..a4d5c3d 100644
--- a/test/Transforms/LICM/sink_inst.ll
+++ b/test/Transforms/LICM/sink_inst.ll
@@ -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
}