[llvm-commits] CVS: llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Reid Spencer reid at x10sys.com
Fri Mar 2 15:01:30 PST 2007



Changes in directory llvm/lib/Transforms/Utils:

SimplifyCFG.cpp updated: 1.117 -> 1.118
---
Log message:

Make sorting of ConstantInt be APInt clean through use of ult function.


---
Diffs of the changes:  (+1 -1)

 SimplifyCFG.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.117 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.118
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.117	Mon Feb 12 20:10:56 2007
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp	Fri Mar  2 17:01:14 2007
@@ -1167,7 +1167,7 @@
   /// applications that sort ConstantInt's to ensure uniqueness.
   struct ConstantIntOrdering {
     bool operator()(const ConstantInt *LHS, const ConstantInt *RHS) const {
-      return LHS->getZExtValue() < RHS->getZExtValue();
+      return LHS->getValue().ult(RHS->getValue());
     }
   };
 }






More information about the llvm-commits mailing list