diff options
author | Dan Gohman <gohman@apple.com> | 2009-06-05 16:35:53 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-06-05 16:35:53 +0000 |
commit | 1d09de3eca23267855e28297fcb40de3632ea47b (patch) | |
tree | 13b940423fa34908bfad4f1e971c1904eb576681 /include/llvm/Analysis/ScalarEvolutionExpander.h | |
parent | c965ee223c6077250525048106726e12b59072ac (diff) | |
download | llvm-1d09de3eca23267855e28297fcb40de3632ea47b.tar.gz llvm-1d09de3eca23267855e28297fcb40de3632ea47b.tar.bz2 llvm-1d09de3eca23267855e28297fcb40de3632ea47b.tar.xz |
Move SCEVExpander::getOrInsertCanonicalInductionVariable out of line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpander.h')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpander.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h index 7e0de47dc4..b40fbf06f9 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -60,12 +60,7 @@ namespace llvm { /// canonical induction variable of the specified type for the specified /// loop (inserting one if there is none). A canonical induction variable /// starts at zero and steps by one on each iteration. - Value *getOrInsertCanonicalInductionVariable(const Loop *L, const Type *Ty){ - assert(Ty->isInteger() && "Can only insert integer induction variables!"); - SCEVHandle H = SE.getAddRecExpr(SE.getIntegerSCEV(0, Ty), - SE.getIntegerSCEV(1, Ty), L); - return expand(H); - } + Value *getOrInsertCanonicalInductionVariable(const Loop *L, const Type *Ty); /// addInsertedValue - Remember the specified instruction as being the /// canonical form for the specified SCEV. |