@@ -230,7 +230,7 @@ bool DominanceInfoBase<IsPostDom>::properlyDominates(Block *a, Block *b) const {
230230 if (regionA != b->getParent ()) {
231231 b = regionA ? regionA->findAncestorBlockInRegion (*b) : nullptr ;
232232 // If we could not find a valid block b then it is a not a dominator.
233- if (b == nullptr )
233+ if (!b )
234234 return false ;
235235
236236 // 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>;
266266// / Return true if operation `a` properly dominates operation `b`. The
267267// / 'enclosingOpOk' flag says whether we should return true if the `b` op is
268268// / 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 {
271271 Block *aBlock = a->getBlock (), *bBlock = b->getBlock ();
272272 assert (aBlock && bBlock && " operations must be in a block" );
273273
@@ -319,7 +319,7 @@ bool DominanceInfo::properlyDominates(Value a, Operation *b) const {
319319
320320 // `a` properlyDominates `b` if the operation defining `a` properlyDominates
321321 // `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 );
323323}
324324
325325// ===----------------------------------------------------------------------===//
0 commit comments