[CorrelatedValuePropagation] Don't use -> to call a static method of ConstantRange. NFC

llvm-svn: 303147
This commit is contained in:
Craig Topper 2017-05-16 07:05:38 +00:00
parent 4cdeb41072
commit 064adc6bfa
1 changed files with 4 additions and 6 deletions

View File

@ -442,9 +442,8 @@ static bool processAdd(BinaryOperator *AddOp, LazyValueInfo *LVI) {
bool Changed = false;
if (!NUW) {
ConstantRange NUWRange =
LRange.makeGuaranteedNoWrapRegion(BinaryOperator::Add, LRange,
OBO::NoUnsignedWrap);
ConstantRange NUWRange = ConstantRange::makeGuaranteedNoWrapRegion(
BinaryOperator::Add, LRange, OBO::NoUnsignedWrap);
if (!NUWRange.isEmptySet()) {
bool NewNUW = NUWRange.contains(LazyRRange());
AddOp->setHasNoUnsignedWrap(NewNUW);
@ -452,9 +451,8 @@ static bool processAdd(BinaryOperator *AddOp, LazyValueInfo *LVI) {
}
}
if (!NSW) {
ConstantRange NSWRange =
LRange.makeGuaranteedNoWrapRegion(BinaryOperator::Add, LRange,
OBO::NoSignedWrap);
ConstantRange NSWRange = ConstantRange::makeGuaranteedNoWrapRegion(
BinaryOperator::Add, LRange, OBO::NoSignedWrap);
if (!NSWRange.isEmptySet()) {
bool NewNSW = NSWRange.contains(LazyRRange());
AddOp->setHasNoSignedWrap(NewNSW);