diff options
Diffstat (limited to 'polly/test/CodeGen/OpenMP/loop-body-references-outer-values.ll')
-rw-r--r-- | polly/test/CodeGen/OpenMP/loop-body-references-outer-values.ll | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/polly/test/CodeGen/OpenMP/loop-body-references-outer-values.ll b/polly/test/CodeGen/OpenMP/loop-body-references-outer-values.ll index a4e1570e7c1a..f9612d77533d 100644 --- a/polly/test/CodeGen/OpenMP/loop-body-references-outer-values.ll +++ b/polly/test/CodeGen/OpenMP/loop-body-references-outer-values.ll @@ -1,5 +1,5 @@ -; RUN: opt -opaque-pointers=0 %loadPolly -polly-parallel -polly-parallel-force -polly-print-ast -disable-output < %s | FileCheck %s -check-prefix=AST -; RUN: opt -opaque-pointers=0 %loadPolly -polly-parallel -polly-parallel-force -polly-codegen -S < %s | FileCheck %s -check-prefix=IR +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-print-ast -disable-output < %s | FileCheck %s -check-prefix=AST +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-codegen -S < %s | FileCheck %s -check-prefix=IR ; Make sure we correctly forward the reference to 'A' to the OpenMP subfunction. ; @@ -15,13 +15,12 @@ ; AST: Stmt_for_body(c0); ; IR-LABEL: polly.parallel.for: -; IR-NEXT: %polly.subfn.storeaddr.A = getelementptr inbounds { float* }, { float* }* %polly.par.userContext, i32 0, i32 0 -; IR-NEXT: store float* %A, float** %polly.subfn.storeaddr.A -; IR-NEXT: %polly.par.userContext1 = bitcast { float* }* %polly.par.userContext to i8* +; IR-NEXT: %polly.subfn.storeaddr.A = getelementptr inbounds { ptr }, ptr %polly.par.userContext, i32 0, i32 0 +; IR-NEXT: store ptr %A, ptr %polly.subfn.storeaddr.A target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" -define void @loop_references_outer_ids(float* %A) { +define void @loop_references_outer_ids(ptr %A) { entry: br label %for.cond @@ -32,8 +31,8 @@ for.cond: ; preds = %for.inc, %entry for.body: ; preds = %for.cond %conv = sitofp i64 %i.0 to float - %arrayidx = getelementptr inbounds float, float* %A, i64 %i.0 - store float %conv, float* %arrayidx, align 4 + %arrayidx = getelementptr inbounds float, ptr %A, i64 %i.0 + store float %conv, ptr %arrayidx, align 4 br label %for.inc for.inc: ; preds = %for.body |