mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 21:57:55 +00:00
simplify this a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c8bd78c16b
commit
a37029cd24
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user