Non-affine post-inc SCEV expansions have more code which must be
authorDan Gohman <gohman@apple.com>
Tue, 2 Mar 2010 01:59:21 +0000 (01:59 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 2 Mar 2010 01:59:21 +0000 (01:59 +0000)
commit069d6f3396856655d5d4ba155ee16eb0209d38b0
tree9e4a75f0aeb9eaf3c7760f5bbe9ea1c12134f3a1
parent46ada19645c981a0b7932487d163f7582074a4d9
Non-affine post-inc SCEV expansions have more code which must be
emitted after the increment. Make sure the insert position
reflects this. This fixes PR6453.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97537 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolutionExpander.cpp
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/Transforms/LoopStrengthReduce/nonlinear-postinc.ll [new file with mode: 0644]