Skip to content

Commit c4c24fd

Browse files
committed
[mlir][OpenMP] Fix assert in processing of dist_schedule
When llvm#152736 was initially merged, the assert that checks for the chunksize when applying a static-chunked schedule was incorrect. While it would not have changed the behaviour of the assert, the string attached to it would have been emitted in cases where it was simplified.
1 parent b768152 commit c4c24fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5514,7 +5514,7 @@ OpenMPIRBuilder::InsertPointOrErrorTy OpenMPIRBuilder::applyWorkshareLoop(
55145514
switch (EffectiveScheduleType & ~OMPScheduleType::ModifierMask) {
55155515
case OMPScheduleType::BaseStatic:
55165516
case OMPScheduleType::BaseDistribute:
5517-
assert(!ChunkSize || !DistScheduleChunkSize &&
5517+
assert((!ChunkSize || !DistScheduleChunkSize) &&
55185518
"No chunk size with static-chunked schedule");
55195519
if (IsOrdered && !HasDistSchedule)
55205520
return applyDynamicWorkshareLoop(DL, CLI, AllocaIP, EffectiveScheduleType,

0 commit comments

Comments
 (0)