We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c911b0a commit 01a0e85Copy full SHA for 01a0e85
mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
@@ -509,12 +509,11 @@ static LogicalResult processParallelLoop(
509
ensureLaunchIndependent(cloningMap.lookupOrDefault(step))});
510
// todo(herhut,ravishankarm): Update the behavior of setMappingAttr
511
// when this condition is relaxed.
512
- if (bounds.contains(processor)) {
+ if (!bounds.try_emplace(processor, launchBound).second) {
513
return rewriter.notifyMatchFailure(
514
parallelOp, "cannot redefine the bound for processor " +
515
Twine(static_cast<int64_t>(processor)));
516
}
517
- bounds[processor] = launchBound;
518
519
if (!boundIsPrecise) {
520
// We are using an approximation, create a surrounding conditional.
0 commit comments