llvm-project
e4c14190 - [mlir][IR] `DominanceInfo`: Fix inconsistency in proper block/op dominance (#115413)

Commit
1 year ago
[mlir][IR] `DominanceInfo`: Fix inconsistency in proper block/op dominance (#115413) An operation is considered to properly dominate itself in a graph region. That's because there is no concept of "dominance" in a graph region. (`dominates` returns "true" for all pairs of ops in the same block. It makes sense to do the same for `properlyDominates`.) Previously, a block was *not* considered to dominate itself in a graph region. This commit fixes this asymmetry between ops and blocks: both are now properly dominating themselves in a graph region.
Parents
Loading