From 25d76d1e533dc075a1187e475e2dd7c2766dbf9e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 18 Dec 2010 20:22:49 +0000 Subject: [PATCH] simplify this a bit. llvm-svn: 122156 --- lib/Transforms/Utils/SimplifyCFG.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 1eb8e8eecfb..c4fce5efdb6 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -315,8 +315,7 @@ GatherConstantCompares(Value *V, std::vector &Vals, Value *&Extra, // 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.