mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[LazyValueInfo] Remove redundant calls to ConstantRange::contains. The same exact call was made in the if above and we already know it returned true. NFC
llvm-svn: 304857
This commit is contained in:
parent
4563e62bb8
commit
31c82f6b25
@ -1684,13 +1684,13 @@ static LazyValueInfo::Tristate getPredicateResult(unsigned Pred, Constant *C,
|
||||
if (!CR.contains(CI->getValue()))
|
||||
return LazyValueInfo::False;
|
||||
|
||||
if (CR.isSingleElement() && CR.contains(CI->getValue()))
|
||||
if (CR.isSingleElement())
|
||||
return LazyValueInfo::True;
|
||||
} else if (Pred == ICmpInst::ICMP_NE) {
|
||||
if (!CR.contains(CI->getValue()))
|
||||
return LazyValueInfo::True;
|
||||
|
||||
if (CR.isSingleElement() && CR.contains(CI->getValue()))
|
||||
if (CR.isSingleElement())
|
||||
return LazyValueInfo::False;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user