- RewriterBase::mergeBlocks is simplified: it is implemented in terms of mergeBlockBefore.
- The signature of mergeBlockBefore is consistent with other API (such as inlineRegionBefore): an overload for a Block::iterator is added.
- Additional safety checks are added to mergeBlockBefore: detect cases where the resulting IR could be invalid (no more dropAllUses) or partly unreachable (likely a case of incorrect API usage).
Depends On: D144549