summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/ScalarEvolutionExpander.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-21 00:29:26 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-21 00:29:26 +0000
commit24d6da5fedcf39891f7d8c5b031c01324b3db545 (patch)
treee7fd1eac07e11c2f15075d23f3c07a5ff48ff1cd /include/llvm/Analysis/ScalarEvolutionExpander.h
parent67f827ce5ba1296db9051892b4a8e10920053933 (diff)
downloadllvm-24d6da5fedcf39891f7d8c5b031c01324b3db545.tar.gz
llvm-24d6da5fedcf39891f7d8c5b031c01324b3db545.tar.bz2
llvm-24d6da5fedcf39891f7d8c5b031c01324b3db545.tar.xz
For PR970:
Clean up handling of isFloatingPoint() and dealing with PackedType. Patch by Gordon Henriksen! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpander.h')
-rw-r--r--include/llvm/Analysis/ScalarEvolutionExpander.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h
index 80e0a9d8cf..fad2da9b9b 100644
--- a/include/llvm/Analysis/ScalarEvolutionExpander.h
+++ b/include/llvm/Analysis/ScalarEvolutionExpander.h
@@ -60,8 +60,7 @@ namespace llvm {
/// 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() || Ty->isFloatingPoint()) &&
- "Can only insert integer or floating point induction variables!");
+ assert(Ty->isInteger() && "Can only insert integer induction variables!");
SCEVHandle H = SCEVAddRecExpr::get(SCEVUnknown::getIntegerSCEV(0, Ty),
SCEVUnknown::getIntegerSCEV(1, Ty), L);
return expand(H);