diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-02-15 21:56:40 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-02-15 21:56:40 +0000 |
commit | f1b0a345d31ba952e333cf8cc5b039b8ab82857a (patch) | |
tree | 38ff68423dac2d56dda1333535f92b64c185bee5 | |
parent | 6e5a2bd0322c285f91d28b19d191110323e0e5ba (diff) | |
download | external_llvm-f1b0a345d31ba952e333cf8cc5b039b8ab82857a.zip external_llvm-f1b0a345d31ba952e333cf8cc5b039b8ab82857a.tar.gz external_llvm-f1b0a345d31ba952e333cf8cc5b039b8ab82857a.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96277 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll b/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll index 0f23ee7..363f571 100644 --- a/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll +++ b/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] |