1; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-codegen -polly-parallel \ 2; RUN: -polly-parallel-force -S < %s | FileCheck %s 3; 4; Test to verify that we pass %rem96 to the parallel subfunction. 5; 6; CHECK: %[[R:[0-9]*]] = getelementptr inbounds { i32, i32, i64, float*, float*, i32 }, { i32, i32, i64, float*, float*, i32 }* %polly.par.userContext1, i32 0, i32 5 7; CHECK-NEXT: %polly.subfunc.arg.rem96 = load i32, i32* %[[R]] 8; 9target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 10 11; Function Attrs: nounwind uwtable 12define void @dmxpy(i32 %n1, float* %y, i32 %n2, float* %x) #0 { 13entry: 14 %rem96 = srem i32 %n2, 16 15 %0 = sext i32 %rem96 to i64 16 %1 = add i64 %0, 15 17 br label %for.cond195.preheader 18 19for.cond195.preheader: ; preds = %for.inc363, %entry 20 %indvars.iv262 = phi i64 [ %1, %entry ], [ %indvars.iv.next263, %for.inc363 ] 21 %j.0236 = phi i32 [ 0, %entry ], [ %add364, %for.inc363 ] 22 br label %for.body197 23 24for.body197: ; preds = %for.body197, %for.cond195.preheader 25 %indvars.iv = phi i64 [ %indvars.iv.next, %for.body197 ], [ 0, %for.cond195.preheader ] 26 %arrayidx199 = getelementptr inbounds float, float* %y, i64 %indvars.iv 27 %2 = add nsw i64 %indvars.iv262, -6 28 %arrayidx292 = getelementptr inbounds float, float* %x, i64 %2 29 %3 = load float, float* %arrayidx292, align 4 30 store float undef, float* %arrayidx199, align 4 31 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 32 %lftr.wideiv = trunc i64 %indvars.iv.next to i32 33 %exitcond = icmp ne i32 %lftr.wideiv, %n1 34 br i1 %exitcond, label %for.body197, label %for.inc363 35 36for.inc363: ; preds = %for.body197 37 %add364 = add nsw i32 %j.0236, 16 38 %cmp193 = icmp slt i32 %add364, %n2 39 %indvars.iv.next263 = add i64 %indvars.iv262, 16 40 br i1 %cmp193, label %for.cond195.preheader, label %for.end365 41 42for.end365: ; preds = %for.inc363 43 ret void 44} 45