@@ -4287,7 +4287,6 @@ OpenMPIRBuilder::InsertPointOrErrorTy OpenMPIRBuilder::applyStaticWorkshareLoop(
42874287 Value *PLowerBound = Builder.CreateAlloca (IVTy, nullptr , " p.lowerbound" );
42884288 Value *PUpperBound = Builder.CreateAlloca (IVTy, nullptr , " p.upperbound" );
42894289 Value *PStride = Builder.CreateAlloca (IVTy, nullptr , " p.stride" );
4290- CLI->setLastIter (PLastIter);
42914290
42924291 // At the end of the preheader, prepare for calling the "init" function by
42934292 // storing the current loop bounds into the allocated space. A canonical loop
@@ -4396,7 +4395,6 @@ OpenMPIRBuilder::applyStaticChunkedWorkshareLoop(DebugLoc DL,
43964395 Value *PUpperBound =
43974396 Builder.CreateAlloca (InternalIVTy, nullptr , " p.upperbound" );
43984397 Value *PStride = Builder.CreateAlloca (InternalIVTy, nullptr , " p.stride" );
4399- CLI->setLastIter (PLastIter);
44004398
44014399 // Set up the source location value for the OpenMP runtime.
44024400 Builder.restoreIP (CLI->getPreheaderIP ());
@@ -4880,7 +4878,6 @@ OpenMPIRBuilder::applyDynamicWorkshareLoop(DebugLoc DL, CanonicalLoopInfo *CLI,
48804878 Value *PLowerBound = Builder.CreateAlloca (IVTy, nullptr , " p.lowerbound" );
48814879 Value *PUpperBound = Builder.CreateAlloca (IVTy, nullptr , " p.upperbound" );
48824880 Value *PStride = Builder.CreateAlloca (IVTy, nullptr , " p.stride" );
4883- CLI->setLastIter (PLastIter);
48844881
48854882 // At the end of the preheader, prepare for calling the "init" function by
48864883 // storing the current loop bounds into the allocated space. A canonical loop
0 commit comments