diff options
| author | Tobias Grosser <tobias@grosser.es> | 2014-04-14 08:33:24 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2014-04-14 08:33:24 +0000 |
| commit | efc3013544ee79c43f289b92125a81470fb7bc71 (patch) | |
| tree | cd147a1094a5952ef7236329c9aeb111c040fece /polly/test/Cloog/CodeGen/20140414-vector-codegen.ll | |
| parent | 35ec2b244a8e318ab3c6be3b23d3fb4e54ea2cda (diff) | |
| download | bcm5719-llvm-efc3013544ee79c43f289b92125a81470fb7bc71.tar.gz bcm5719-llvm-efc3013544ee79c43f289b92125a81470fb7bc71.zip | |
Codegeneration: Free memory correctly when using -polly-vectorizer=polly
This fixes PR19421.
Reported-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
llvm-svn: 206156
Diffstat (limited to 'polly/test/Cloog/CodeGen/20140414-vector-codegen.ll')
| -rw-r--r-- | polly/test/Cloog/CodeGen/20140414-vector-codegen.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/polly/test/Cloog/CodeGen/20140414-vector-codegen.ll b/polly/test/Cloog/CodeGen/20140414-vector-codegen.ll new file mode 100644 index 00000000000..39255fb1a22 --- /dev/null +++ b/polly/test/Cloog/CodeGen/20140414-vector-codegen.ll @@ -0,0 +1,21 @@ +; RUN: opt %loadPolly -polly-codegen -polly-vectorizer=polly < %s +; PR 19421 +target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-apple-macosx10.8.0" + +define void @extract_field(i32* %frame, i32 %nb_planes) { +entry: + br i1 undef, label %for.body, label %for.end + +for.body: ; preds = %for.body, %entry + %indvar = phi i64 [ %indvar.next, %for.body ], [ 0, %entry ] + %arrayidx2.moved.to.if.end = getelementptr i32* %frame, i64 %indvar + %.moved.to.if.end = zext i32 %nb_planes to i64 + store i32 undef, i32* %arrayidx2.moved.to.if.end + %indvar.next = add i64 %indvar, 1 + %exitcond = icmp ne i64 %indvar.next, %.moved.to.if.end + br i1 %exitcond, label %for.body, label %for.end + +for.end: ; preds = %for.body, %entry + ret void +} |

