[llvm-commits] [llvm] r122156 - /llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp

Chris Lattner sabre at nondot.org
Sat Dec 18 12:22:49 PST 2010


Author: lattner
Date: Sat Dec 18 14:22:49 2010
New Revision: 122156

URL: http://llvm.org/viewvc/llvm-project?rev=122156&view=rev
Log:
simplify this a bit.

Modified:
    llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp

Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=122156&r1=122155&r2=122156&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Sat Dec 18 14:22:49 2010
@@ -315,8 +315,7 @@
       // If we have "x ult 3" comparison, for example, then we can add 0,1,2 to
       // the set.
       ConstantRange Span =
-        ConstantRange::makeICmpRegion(ICI->getPredicate(),
-                                      ConstantRange(C->getValue()));
+        ConstantRange::makeICmpRegion(ICI->getPredicate(), C->getValue());
       
       // If this is an and/!= check then we want to optimize "x ugt 2" into
       // x != 0 && x != 1.





More information about the llvm-commits mailing list