summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-11-02 00:02:45 +0000
committerAndrew Trick <atrick@apple.com>2011-11-02 00:02:45 +0000
commit0dae890346e355c8bbe24d17ae33fa77a81e87be (patch)
treefaaecb1e7d9f265d5d928fa9a60e57d7ab0ad104 /llvm/lib/Transforms
parent82ed3be1fb92beacc57195fa0e00ccd2ae7f986c (diff)
downloadbcm5719-llvm-0dae890346e355c8bbe24d17ae33fa77a81e87be.tar.gz
bcm5719-llvm-0dae890346e355c8bbe24d17ae33fa77a81e87be.zip
Broaden an assert to handle enable-iv-rewrite=true following r143183.
Narrowest possible fix for PR11279. llvm-svn: 143522
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index dce7f87e2c2..b2ccb2270ed 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -1588,7 +1588,7 @@ LinearFunctionTestReplace(Loop *L,
assert(SE->isLoopInvariant(IVLimit, L) &&
"Computed iteration count is not loop invariant!");
- assert( !IVLimit->getType()->isPointerTy() &&
+ assert( EnableIVRewrite || !IVLimit->getType()->isPointerTy() &&
"Should not expand pointer types" );
Value *ExitCnt = Rewriter.expandCodeFor(IVLimit, CmpTy, BI);
OpenPOWER on IntegriCloud