mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 12:33:33 +02:00
[ConstantRange] Use const references to prevent a couple APInt copies. NFC
llvm-svn: 301694
This commit is contained in:
parent
aadb76861c
commit
0b1ad24c87
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user