diff options
| author | Nadav Rotem <nrotem@apple.com> | 2012-10-21 02:38:01 +0000 |
|---|---|---|
| committer | Nadav Rotem <nrotem@apple.com> | 2012-10-21 02:38:01 +0000 |
| commit | 7e1084d36c80223405b82292fc4e1b21d44740d6 (patch) | |
| tree | 6b85a46b60395279e825bbdd520d26d645fac87b /llvm/test/Transforms/LoopVectorize | |
| parent | a930e7131c42253c78e3c163cc60b81e8022ebad (diff) | |
| download | bcm5719-llvm-7e1084d36c80223405b82292fc4e1b21d44740d6.tar.gz bcm5719-llvm-7e1084d36c80223405b82292fc4e1b21d44740d6.zip | |
Vectorizer: fix a bug in the classification of induction/reduction phis.
llvm-svn: 166384
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize')
| -rw-r--r-- | llvm/test/Transforms/LoopVectorize/2012-10-20-infloop.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/2012-10-20-infloop.ll b/llvm/test/Transforms/LoopVectorize/2012-10-20-infloop.ll index 16a77291995..5caaffc8dde 100644 --- a/llvm/test/Transforms/LoopVectorize/2012-10-20-infloop.ll +++ b/llvm/test/Transforms/LoopVectorize/2012-10-20-infloop.ll @@ -10,3 +10,18 @@ for.body: br label %for.body } + + +define void @test2() nounwind { +entry: + br label %for.body + +for.body: ; preds = %for.body, %entry + %indvars.iv47 = phi i64 [ 0, %entry ], [ %indvars.iv.next48, %for.body ] + %0 = phi i32 [ 1, %entry ], [ 0, %for.body ] + %indvars.iv.next48 = add i64 %indvars.iv47, 1 + br i1 undef, label %for.end, label %for.body + +for.end: ; preds = %for.body + unreachable +} |

