diff options
| author | Davide Italiano <davide@freebsd.org> | 2017-04-07 17:34:37 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2017-04-07 17:34:37 +0000 |
| commit | 40bf3a4bfd3c06fd97a5b764b967b8aee0ed5db2 (patch) | |
| tree | 68ce769f888d150d6e991bf2b562bac0d76a47d6 /llvm | |
| parent | f7e4388e3bdcad8956a6bb3b66aa39768e259ed3 (diff) | |
| download | bcm5719-llvm-40bf3a4bfd3c06fd97a5b764b967b8aee0ed5db2.tar.gz bcm5719-llvm-40bf3a4bfd3c06fd97a5b764b967b8aee0ed5db2.zip | |
[Dominators] Simplify a member function. NFCI.
llvm-svn: 299789
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/IR/Dominators.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/include/llvm/IR/Dominators.h b/llvm/include/llvm/IR/Dominators.h index 88c8456cb46..cae03d33a7e 100644 --- a/llvm/include/llvm/IR/Dominators.h +++ b/llvm/include/llvm/IR/Dominators.h @@ -129,14 +129,8 @@ public: inline bool compare(const DominatorTree &Other) const { const DomTreeNode *R = getRootNode(); const DomTreeNode *OtherR = Other.getRootNode(); - - if (!R || !OtherR || R->getBlock() != OtherR->getBlock()) - return true; - - if (Base::compare(Other)) - return true; - - return false; + return !R || !OtherR || R->getBlock() != OtherR->getBlock() || + Base::compare(Other); } // Ensure base-class overloads are visible. |

