diff options
author | Andrew Trick <atrick@apple.com> | 2011-10-15 06:19:55 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-10-15 06:19:55 +0000 |
commit | 365c9f1ff55bef134c6b9707f7df44d680ddabea (patch) | |
tree | edc2f1c2fa2fa67906158462fba8d4a8c96ccfab /include | |
parent | 569c4a4767428d7b489db1e634ced5a3b36d8a1d (diff) | |
download | llvm-365c9f1ff55bef134c6b9707f7df44d680ddabea.tar.gz llvm-365c9f1ff55bef134c6b9707f7df44d680ddabea.tar.bz2 llvm-365c9f1ff55bef134c6b9707f7df44d680ddabea.tar.xz |
Fix SCEVExpander assert during LSR: "argument of incompatible type".
Just because we're dealing with a GEP doesn't mean we can assert the
SCEV has a pointer type. The fix is simply to ignore the SCEV pointer
type, which we really didn't need.
Fixes PR11138 webkit crash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpander.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h index 1080580c96..a4ad1451d4 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -237,8 +237,7 @@ namespace llvm { bool isNormalAddRecExprPHI(PHINode *PN, Instruction *IncV, const Loop *L); - bool isExpandedAddRecExprPHI(PHINode *PN, Instruction *IncV, const Loop *L, - Type *ExpandTy); + bool isExpandedAddRecExprPHI(PHINode *PN, Instruction *IncV, const Loop *L); Value *expandAddRecExprLiterally(const SCEVAddRecExpr *); PHINode *getAddRecExprPHILiterally(const SCEVAddRecExpr *Normalized, |