diff options
author | Andrew Trick <atrick@apple.com> | 2011-11-30 06:07:54 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-11-30 06:07:54 +0000 |
commit | 553fe05f236f46fe27b7fcfa822b06367d50183e (patch) | |
tree | 8bfd02d9690492145f9ffe5c30ff1a132c9d3db4 /include/llvm/Analysis/ScalarEvolutionExpander.h | |
parent | caebb1e00b28226597b53371751391c50aa0283b (diff) | |
download | external_llvm-553fe05f236f46fe27b7fcfa822b06367d50183e.zip external_llvm-553fe05f236f46fe27b7fcfa822b06367d50183e.tar.gz external_llvm-553fe05f236f46fe27b7fcfa822b06367d50183e.tar.bz2 |
LSR: handle the expansion of phi operands that use postinc forms of the IV.
Fixes PR11431: SCEVExpander::expandAddRecExprLiterally(const llvm::SCEVAddRecExpr*): Assertion `(!isa<Instruction>(Result) || SE.DT->dominates(cast<Instruction>(Result), Builder.GetInsertPoint())) && "postinc expansion does not dominate use"' failed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpander.h')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpander.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h index a4ad145..cd7e7f1 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -244,6 +244,8 @@ namespace llvm { const Loop *L, Type *ExpandTy, Type *IntTy); + Value *expandIVInc(PHINode *PN, Value *StepV, const Loop *L, + Type *ExpandTy, Type *IntTy, bool useSubtract); }; } |