diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-22 08:36:05 +0000 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-22 08:36:05 +0000 |
| commit | 5299e25f502131483c4555efa641b93bad81a893 (patch) | |
| tree | 3eaf4cb7b365551d7c5fdac97b498e87995c648e /llvm/lib/Transforms/Scalar | |
| parent | f902250fc13bdcd2dbdb733304f1eed743613eb9 (diff) | |
| download | bcm5719-llvm-5299e25f502131483c4555efa641b93bad81a893.tar.gz bcm5719-llvm-5299e25f502131483c4555efa641b93bad81a893.zip | |
[ConstantRange] Rename make{Guaranteed -> Exact}NoWrapRegion() NFC
Following D60632 makeGuaranteedNoWrapRegion() always returns an
exact nowrap region. Rename the function accordingly. This is in
line with the naming of makeExactICmpRegion().
llvm-svn: 358875
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp index 2c31e4aa6cd..5242ce09fff 100644 --- a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp +++ b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp @@ -402,7 +402,7 @@ static bool processSwitch(SwitchInst *SI, LazyValueInfo *LVI, static bool willNotOverflow(WithOverflowInst *WO, LazyValueInfo *LVI) { Value *RHS = WO->getRHS(); ConstantRange RRange = LVI->getConstantRange(RHS, WO->getParent(), WO); - ConstantRange NWRegion = ConstantRange::makeGuaranteedNoWrapRegion( + ConstantRange NWRegion = ConstantRange::makeExactNoWrapRegion( WO->getBinaryOp(), RRange, WO->getNoWrapKind()); // As an optimization, do not compute LRange if we do not need it. if (NWRegion.isEmptySet()) @@ -640,7 +640,7 @@ static bool processBinOp(BinaryOperator *BinOp, LazyValueInfo *LVI) { bool Changed = false; if (!NUW) { - ConstantRange NUWRange = ConstantRange::makeGuaranteedNoWrapRegion( + ConstantRange NUWRange = ConstantRange::makeExactNoWrapRegion( BinOp->getOpcode(), RRange, OBO::NoUnsignedWrap); if (!NUWRange.isEmptySet()) { bool NewNUW = NUWRange.contains(LazyLRange()); @@ -649,7 +649,7 @@ static bool processBinOp(BinaryOperator *BinOp, LazyValueInfo *LVI) { } } if (!NSW) { - ConstantRange NSWRange = ConstantRange::makeGuaranteedNoWrapRegion( + ConstantRange NSWRange = ConstantRange::makeExactNoWrapRegion( BinOp->getOpcode(), RRange, OBO::NoSignedWrap); if (!NSWRange.isEmptySet()) { bool NewNSW = NSWRange.contains(LazyLRange()); |

