projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8bd78c
)
simplify this a bit.
author
Chris Lattner
<sabre@nondot.org>
Sat, 18 Dec 2010 20:22:49 +0000
(20:22 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 18 Dec 2010 20:22:49 +0000
(20:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122156
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index 1eb8e8eecfb13696266255aa4030b826755ebfed..c4fce5efdb6e34283fa77676820a8a936e2913b0 100644
(file)
--- a/
lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/
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.