1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +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:
Craig Topper 2017-06-07 00:58:09 +00:00
parent 4563e62bb8
commit 31c82f6b25

View File

@ -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;
}