summaryrefslogtreecommitdiff
path: root/polly/lib/CodeGen/LoopGenerators.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-03-17 15:58:52 +0100
committerNikita Popov <npopov@redhat.com>2023-03-17 15:59:19 +0100
commit18680a36aa1b125cbde3fa0a10fa53db2b697f3a (patch)
tree15a6f118d20718b8e996bc69ee92d47cd25c9af5 /polly/lib/CodeGen/LoopGenerators.cpp
parentcd47f5bb5987667a1761059fa216437d9f1d97c9 (diff)
[Polly] Remove some bitcasts (NFC)
No longer relevant with opaque pointers.
Diffstat (limited to 'polly/lib/CodeGen/LoopGenerators.cpp')
-rw-r--r--polly/lib/CodeGen/LoopGenerators.cpp5
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;
}