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());
     }
   };
 }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to