================
@@ -5003,16 +5003,17 @@ static void
createTargetLoopWorkshareCall(OpenMPIRBuilder *OMPBuilder,
RealArgs.push_back(ConstantInt::get(TripCountTy, 0));
if (LoopType == WorksharingLoopType::DistributeForStaticLoop) {
RealArgs.push_back(ConstantInt::get(TripCountTy, 0));
- }
- RealArgs.push_back(ConstantInt::get(Builder.getInt8Ty(), 0));
+ RealArgs.push_back(ConstantInt::get(Builder.getInt8Ty(), NoLoop));
+ } else
+ RealArgs.push_back(ConstantInt::get(Builder.getInt8Ty(), 0));
----------------
DominikAdamski wrote:
Done
https://github.com/llvm/llvm-project/pull/155818
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits