mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
The implementations of `DominanceInfo::properlyDominates` and `PostDominanceInfo::properlyPostDominates` are almost identical: only one line of code is different (apart from the missing `enclosingOpOk` flag). Define the function in `DominanceInfoBase` to avoid the code duplication. Also rename the helper in `DominanceInfoBase` to `properlyDominatesImpl`. Note: This commit is not marked as NFC because `PostDominanceInfo::properlyPostDominates` now also has an `enclosingOpOk` argument. Depends on #115430.