diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2007-07-16 02:08:00 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2007-07-16 02:08:00 +0000 |
commit | eefdebe002ede066bf80859e72aec831cfd1d92d (patch) | |
tree | bc4b9169e18e35a769648c6cea3e0fee36cce289 /include/llvm/Analysis/ScalarEvolutionExpressions.h | |
parent | f7b71c64cfe805d0a48d18d55a739ce8a7e6851a (diff) |
Handle decrementing loops properly. Fixes PR1533.
Always pass the constant as the second parameter to HowManyLessThans.
Remove obsolete "isSigned" parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpressions.h')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpressions.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpressions.h b/include/llvm/Analysis/ScalarEvolutionExpressions.h index 957ddadcb5..af1656ee8e 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpressions.h +++ b/include/llvm/Analysis/ScalarEvolutionExpressions.h @@ -475,10 +475,8 @@ namespace llvm { /// looking at this is that it returns the first iteration number where the /// value is not in the condition, thus computing the exit count. If the /// iteration count can't be computed, an instance of SCEVCouldNotCompute is - /// returned. The isSigned parameter indicates whether the ConstantRange - /// should be treated as signed or unsigned. - SCEVHandle getNumIterationsInRange(ConstantRange Range, - bool isSigned) const; + /// returned. + SCEVHandle getNumIterationsInRange(ConstantRange Range) const; SCEVHandle replaceSymbolicValuesWithConcrete(const SCEVHandle &Sym, const SCEVHandle &Conc) const; |