forked from OSchip/llvm-project
[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:
parent
03de7c1501
commit
d6f2639fd7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue