summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-18 20:22:49 +0000
committerChris Lattner <sabre@nondot.org>2010-12-18 20:22:49 +0000
commit6b8b4855ff12696f20eb0e48375134ae92dbccd7 (patch)
treef4279a98c3bbbdd67ea8b65a949a298248baf2ed
parent3eb4fedecf5381eec25ca2c31bcced031dbd3358 (diff)
downloadbcm5719-llvm-6b8b4855ff12696f20eb0e48375134ae92dbccd7.tar.gz
bcm5719-llvm-6b8b4855ff12696f20eb0e48375134ae92dbccd7.zip
simplify this a bit.
llvm-svn: 122156
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 1eb8e8eecfb..c4fce5efdb6 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -315,8 +315,7 @@ GatherConstantCompares(Value *V, std::vector<ConstantInt*> &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.
OpenPOWER on IntegriCloud