LSR: handle the expansion of phi operands that use postinc forms of the IV.
authorAndrew Trick <atrick@apple.com>
Wed, 30 Nov 2011 06:07:54 +0000 (06:07 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 30 Nov 2011 06:07:54 +0000 (06:07 +0000)
commit553fe05f236f46fe27b7fcfa822b06367d50183e
tree8bfd02d9690492145f9ffe5c30ff1a132c9d3db4
parentcaebb1e00b28226597b53371751391c50aa0283b
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
include/llvm/Analysis/ScalarEvolutionExpander.h
lib/Analysis/ScalarEvolutionExpander.cpp
test/Transforms/LoopStrengthReduce/2011-11-29-postincphi.ll [new file with mode: 0644]