1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[Dominators] Simplify a member function. NFCI.

llvm-svn: 299789
This commit is contained in:
Davide Italiano 2017-04-07 17:34:37 +00:00
parent bf33dc6ed7
commit dda7a687db

View File

@ -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.