mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
simplify this a bit.
llvm-svn: 122156
This commit is contained in:
parent
f49c9c02d6
commit
25d76d1e53
@ -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