Skip to content

Commit

Permalink
[ConstantRange] Use const references to prevent a couple APInt copies…
Browse files Browse the repository at this point in the history
…. NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301694 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
topperc committed Apr 28, 2017
1 parent 50ddb71 commit 00cdeee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/IR/ConstantRange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ ConstantRange::makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp,
-Other.getUnsignedMax()));

if (NoWrapKind & OBO::NoSignedWrap) {
APInt SignedMin = Other.getSignedMin();
APInt SignedMax = Other.getSignedMax();
const APInt &SignedMin = Other.getSignedMin();
const APInt &SignedMax = Other.getSignedMax();

if (SignedMax.isStrictlyPositive())
Result = SubsetIntersect(
Expand Down

0 comments on commit 00cdeee

Please sign in to comment.