summaryrefslogtreecommitdiffstats
path: root/polly/lib/IndVarSimplify.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-10 20:22:17 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-10 20:22:17 +0000
commit77d55f8abd224c53277e60b77b27b9becdec2fb4 (patch)
treee37d50789c0415f14b83cb5a506044c70569e58c /polly/lib/IndVarSimplify.cpp
parentf1a7425bd95ecb233d7333a2e1b0d63dde5e803d (diff)
downloadbcm5719-llvm-77d55f8abd224c53277e60b77b27b9becdec2fb4.tar.gz
bcm5719-llvm-77d55f8abd224c53277e60b77b27b9becdec2fb4.zip
Fix build after SCEV change
llvm-svn: 190429
Diffstat (limited to 'polly/lib/IndVarSimplify.cpp')
-rw-r--r--polly/lib/IndVarSimplify.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/polly/lib/IndVarSimplify.cpp b/polly/lib/IndVarSimplify.cpp
index 6cec03f924f..9f057627e1b 100644
--- a/polly/lib/IndVarSimplify.cpp
+++ b/polly/lib/IndVarSimplify.cpp
@@ -1557,9 +1557,11 @@ static Value *genLoopLimit(PHINode *IndVar, const SCEV *IVCount, Loop *L,
assert(AR->getStart() == SE->getSCEV(GEPBase) && "bad loop counter");
// We could handle pointer IVs other than i8*, but we need to compensate for
// gep index scaling. See canExpandBackedgeTakenCount comments.
- assert(SE->getSizeOfExpr(cast<PointerType>(GEPBase->getType())
- ->getElementType())->isOne() &&
- "unit stride pointer IV must be i8*");
+ assert(
+ SE->getSizeOfExpr(
+ IntegerType::getInt64Ty(IndVar->getContext()),
+ cast<PointerType>(GEPBase->getType())->getElementType())->isOne() &&
+ "unit stride pointer IV must be i8*");
IRBuilder<> Builder(L->getLoopPreheader()->getTerminator());
return Builder.CreateGEP(GEPBase, GEPOffset, "lftr.limit");
OpenPOWER on IntegriCloud