]> granicus.if.org Git - llvm/commitdiff
[SCEV] Have getRangeForAffineARHelper take StartRange by const reference to avoid...
authorCraig Topper <craig.topper@gmail.com>
Mon, 8 May 2017 02:29:15 +0000 (02:29 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 8 May 2017 02:29:15 +0000 (02:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302398 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index 7facf36f52dcb8352ddc368c52c2f3f28b1253af..b1ab6565371891dfd36d0a968ee364debc1113fc 100644 (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