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 springerm on Aug 29 2023, 2:08 AM. Authored by
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?
|
.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?)