[SCEV] Have getRangeForAffineARHelper take StartRange by const reference to avoid a copy in many of the cases.

llvm-svn: 302398
This commit is contained in:
Craig Topper 2017-05-08 02:29:15 +00:00
parent 03de7c1501
commit d6f2639fd7
1 changed files with 1 additions and 1 deletions

View File

@ -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