summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-02-15 21:56:40 +0000
committerBob Wilson <bob.wilson@apple.com>2010-02-15 21:56:40 +0000
commit9be7200b087e690e90f3ffeb623af0326fa6b4fe (patch)
treeb47914cffde53e9e62e0c8c9ce733108a5f8cab9
parent30a42923d3c744725569ed11393ab5c40e543085 (diff)
downloadbcm5719-llvm-9be7200b087e690e90f3ffeb623af0326fa6b4fe.tar.gz
bcm5719-llvm-9be7200b087e690e90f3ffeb623af0326fa6b4fe.zip
Last week we were generating code with duplicate induction variables in this
test, but the problem seems to have gone away today. Add a check to make sure it doesn't come back. llvm-svn: 96277
-rw-r--r--llvm/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll b/llvm/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll
index 0f23ee75683..363f5719d17 100644
--- a/llvm/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll
+++ b/llvm/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll
@@ -58,6 +58,10 @@ bb1: ; preds = %bb
br label %bb2
bb2: ; preds = %bb1, %bb
+; also check for duplicate induction variables (radar 7645034)
+; CHECK: subs r{{.*}}, #1
+; CHECK-NOT: subs r{{.*}}, #1
+; CHECK: pop
%u.0 = phi i64 [ %ins, %bb1 ], [ %u.17, %bb ] ; <i64> [#uses=2]
%indvar.next = add i32 %indvar, 1 ; <i32> [#uses=2]
%exitcond = icmp eq i32 %indvar.next, %tmp ; <i1> [#uses=1]
OpenPOWER on IntegriCloud