diff options
author | River Riddle <riverriddle@google.com> | 2019-08-09 20:07:25 -0700 |
---|---|---|
committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-08-09 20:07:52 -0700 |
commit | 1e42954032cd4288963b652e1eeeb26915cf8eac (patch) | |
tree | 654703084ad169c57e34b5e4a9ffc54ccfac4302 /mlir/lib/Analysis/Dominance.cpp | |
parent | ac68637ba94d05f413b1b963950c300fb2f81a99 (diff) | |
download | bcm5719-llvm-1e42954032cd4288963b652e1eeeb26915cf8eac.tar.gz bcm5719-llvm-1e42954032cd4288963b652e1eeeb26915cf8eac.zip |
NFC: Standardize the terminology used for parent ops/regions/etc.
There are currently several different terms used to refer to a parent IR unit in 'get' methods: getParent/getEnclosing/getContaining. This cl standardizes all of these methods to use 'getParent*'.
PiperOrigin-RevId: 262680287
Diffstat (limited to 'mlir/lib/Analysis/Dominance.cpp')
-rw-r--r-- | mlir/lib/Analysis/Dominance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Analysis/Dominance.cpp b/mlir/lib/Analysis/Dominance.cpp index fc62048d412..e384a56a71d 100644 --- a/mlir/lib/Analysis/Dominance.cpp +++ b/mlir/lib/Analysis/Dominance.cpp @@ -70,7 +70,7 @@ bool DominanceInfoBase<IsPostDom>::properlyDominates(Block *a, Block *b) { if (regionA != regionB) { Operation *bAncestor; do { - bAncestor = regionB->getContainingOp(); + bAncestor = regionB->getParentOp(); // If 'bAncestor' is the top level region, then 'a' is a block that post // dominates 'b'. if (!bAncestor || !bAncestor->getBlock()) |