From: Craig Topper Date: Fri, 28 Apr 2017 21:48:03 +0000 (+0000) Subject: [ConstantRange] Use const references to prevent a couple APInt copies. NFC X-Git-Tag: llvmorg-5.0.0-rc1~6376 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72235d084dceac9126d793bb0bd8c1a07a050f16;p=platform%2Fupstream%2Fllvm.git [ConstantRange] Use const references to prevent a couple APInt copies. NFC llvm-svn: 301694 --- diff --git a/llvm/lib/IR/ConstantRange.cpp b/llvm/lib/IR/ConstantRange.cpp index 0cc38b0..a58a641 100644 --- a/llvm/lib/IR/ConstantRange.cpp +++ b/llvm/lib/IR/ConstantRange.cpp @@ -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(