projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca31b9f
)
[ConstantRange] Use const references to prevent a couple APInt copies. NFC
author
Craig Topper
<craig.topper@gmail.com>
Fri, 28 Apr 2017 21:48:03 +0000
(21:48 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Fri, 28 Apr 2017 21:48:03 +0000
(21:48 +0000)
llvm-svn: 301694
llvm/lib/IR/ConstantRange.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/ConstantRange.cpp
b/llvm/lib/IR/ConstantRange.cpp
index
0cc38b0
..
a58a641
100644
(file)
--- 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(