@@ -230,7 +230,7 @@ bool DominanceInfoBase<IsPostDom>::properlyDominates(Block *a, Block *b) const {
230
230
if (regionA != b->getParent ()) {
231
231
b = regionA ? regionA->findAncestorBlockInRegion (*b) : nullptr ;
232
232
// If we could not find a valid block b then it is a not a dominator.
233
- if (b == nullptr )
233
+ if (!b )
234
234
return false ;
235
235
236
236
// Check to see if the ancestor of `b` is the same block as `a`. A properly
@@ -266,8 +266,8 @@ template class detail::DominanceInfoBase</*IsPostDom=*/false>;
266
266
// / Return true if operation `a` properly dominates operation `b`. The
267
267
// / 'enclosingOpOk' flag says whether we should return true if the `b` op is
268
268
// / enclosed by a region on 'a'.
269
- bool DominanceInfo::properlyDominatesImpl (Operation *a, Operation *b,
270
- bool enclosingOpOk) const {
269
+ bool DominanceInfo::properlyDominates (Operation *a, Operation *b,
270
+ bool enclosingOpOk) const {
271
271
Block *aBlock = a->getBlock (), *bBlock = b->getBlock ();
272
272
assert (aBlock && bBlock && " operations must be in a block" );
273
273
@@ -319,7 +319,7 @@ bool DominanceInfo::properlyDominates(Value a, Operation *b) const {
319
319
320
320
// `a` properlyDominates `b` if the operation defining `a` properlyDominates
321
321
// `b`, but `a` does not itself enclose `b` in one of its regions.
322
- return properlyDominatesImpl (a.getDefiningOp (), b, /* enclosingOpOk=*/ false );
322
+ return properlyDominates (a.getDefiningOp (), b, /* enclosingOpOk=*/ false );
323
323
}
324
324
325
325
// ===----------------------------------------------------------------------===//
0 commit comments