mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Avoid using dominatedBySlowTreeWalk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -338,9 +338,12 @@ public:
|
|||||||
/// Note that this is not a constant time operation!
|
/// Note that this is not a constant time operation!
|
||||||
///
|
///
|
||||||
bool properlyDominates(const DomTreeNodeBase<NodeT> *A,
|
bool properlyDominates(const DomTreeNodeBase<NodeT> *A,
|
||||||
const DomTreeNodeBase<NodeT> *B) const {
|
const DomTreeNodeBase<NodeT> *B) {
|
||||||
if (A == 0 || B == 0) return false;
|
if (A == 0 || B == 0)
|
||||||
return dominatedBySlowTreeWalk(A, B);
|
return false;
|
||||||
|
if (A == B)
|
||||||
|
return false;
|
||||||
|
return dominates(A, B);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool properlyDominates(const NodeT *A, const NodeT *B) {
|
inline bool properlyDominates(const NodeT *A, const NodeT *B) {
|
||||||
@@ -350,8 +353,8 @@ public:
|
|||||||
// Cast away the const qualifiers here. This is ok since
|
// Cast away the const qualifiers here. This is ok since
|
||||||
// this function doesn't actually return the values returned
|
// this function doesn't actually return the values returned
|
||||||
// from getNode.
|
// from getNode.
|
||||||
return properlyDominates(getNode(const_cast<NodeT *>(A)),
|
return dominates(getNode(const_cast<NodeT *>(A)),
|
||||||
getNode(const_cast<NodeT *>(B)));
|
getNode(const_cast<NodeT *>(B)));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool dominatedBySlowTreeWalk(const DomTreeNodeBase<NodeT> *A,
|
bool dominatedBySlowTreeWalk(const DomTreeNodeBase<NodeT> *A,
|
||||||
|
|||||||
Reference in New Issue
Block a user