[llvm-commits] CVS: llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp

Bill Wendling isanbard at gmail.com
Mon Jun 4 16:53:30 PDT 2007



Changes in directory llvm/lib/Transforms/Scalar:

PredicateSimplifier.cpp updated: 1.77 -> 1.78
---
Log message:

Patches by Chuck Rose to unbreak V Studio builds.

Thanks Chuck!


---
Diffs of the changes:  (+15 -0)

 PredicateSimplifier.cpp |   15 +++++++++++++++
 1 files changed, 15 insertions(+)


Index: llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp
diff -u llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.77 llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.78
--- llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.77	Sun Jun  3 19:32:21 2007
+++ llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp	Mon Jun  4 18:52:59 2007
@@ -232,6 +232,13 @@
       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 @@
       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;






More information about the llvm-commits mailing list