diff options
Diffstat (limited to 'lib/Transforms/Scalar/PredicateSimplifier.cpp')
-rw-r--r-- | lib/Transforms/Scalar/PredicateSimplifier.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/PredicateSimplifier.cpp b/lib/Transforms/Scalar/PredicateSimplifier.cpp index eedf2c2d46..d7849f6077 100644 --- a/lib/Transforms/Scalar/PredicateSimplifier.cpp +++ b/lib/Transforms/Scalar/PredicateSimplifier.cpp @@ -232,6 +232,13 @@ namespace { bool operator<(unsigned to) const { return To < to; } + bool operator>(unsigned to) const { + return To > to; + } + + friend bool operator<(unsigned to, const Edge &edge) { + return edge.operator>(to); + } }; /// A single node in the InequalityGraph. This stores the canonical Value @@ -669,6 +676,14 @@ namespace { bool operator<(const Value *value) const { return V < value; } + + bool operator>(const Value *value) const { + return V > value; + } + + friend bool operator<(const Value *value, const ScopedRange &range) { + return range.operator>(value); + } }; TargetData *TD; |