Do not inline IR with multiple blocks into ops that may not support unstructured control flow.
This fixes #64978.
Depends On: D159078
Differential D159072
[mlir][Transforms] Inliner: Extra checks for unstructured control flow Authored by springerm on Aug 29 2023, 2:08 AM.
Details Do not inline IR with multiple blocks into ops that may not support unstructured control flow. This fixes #64978. Depends On: D159078
Diff Detail
Event TimelineComment Actions I guess you're lookin into the SingleBlockRegion trait still?
Comment Actions Yes, I'm waiting for comments on the Discourse post, then will update this revision. | |||||||||
.size() is O(N), you can probably try &targetRegion->front() != &targetRegion->back() ?
(I don't know if we have a guarantee that targetRegion is not empty?)