diff options
Diffstat (limited to 'polly/lib/CodeGen/LoopGenerators.cpp')
-rw-r--r-- | polly/lib/CodeGen/LoopGenerators.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/polly/lib/CodeGen/LoopGenerators.cpp b/polly/lib/CodeGen/LoopGenerators.cpp index ebd4b22476c9..5c99515c5444 100644 --- a/polly/lib/CodeGen/LoopGenerators.cpp +++ b/polly/lib/CodeGen/LoopGenerators.cpp @@ -186,15 +186,12 @@ Value *ParallelLoopGenerator::createParallelLoop( *LoopBody = Builder.GetInsertPoint(); Builder.SetInsertPoint(&*BeforeLoop); - Value *SubFnParam = Builder.CreateBitCast(Struct, Builder.getInt8PtrTy(), - "polly.par.userContext"); - // Add one as the upper bound provided by OpenMP is a < comparison // whereas the codegenForSequential function creates a <= comparison. UB = Builder.CreateAdd(UB, ConstantInt::get(LongType, 1)); // Execute the prepared subfunction in parallel. - deployParallelExecution(SubFn, SubFnParam, LB, UB, Stride); + deployParallelExecution(SubFn, Struct, LB, UB, Stride); return IV; } |