summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-05-08 02:29:15 +0000
committerCraig Topper <craig.topper@gmail.com>2017-05-08 02:29:15 +0000
commitd6f2639fd70f623c7f6119737428e4363b22c1ea (patch)
treeb47567d5f5d4a84563295d4ccb99f29f4e0cc106 /llvm/lib
parent03de7c1501a8ae382778eb1ec69a2b954a033c75 (diff)
downloadbcm5719-llvm-d6f2639fd70f623c7f6119737428e4363b22c1ea.tar.gz
bcm5719-llvm-d6f2639fd70f623c7f6119737428e4363b22c1ea.zip
[SCEV] Have getRangeForAffineARHelper take StartRange by const reference to avoid a copy in many of the cases.
llvm-svn: 302398
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 7facf36f52d..b1ab6565371 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -4842,7 +4842,7 @@ ScalarEvolution::getRange(const SCEV *S,
// from StartRange and then is changed by Step up to MaxBECount times. Signed
// argument defines if we treat Step as signed or unsigned.
static ConstantRange getRangeForAffineARHelper(APInt Step,
- ConstantRange StartRange,
+ const ConstantRange &StartRange,
const APInt &MaxBECount,
unsigned BitWidth, bool Signed) {
// If either Step or MaxBECount is 0, then the expression won't change, and we
OpenPOWER on IntegriCloud