When emitting an instruction which depends on both a post-incremented
authorDan Gohman <gohman@apple.com>
Mon, 22 Feb 2010 03:59:54 +0000 (03:59 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 22 Feb 2010 03:59:54 +0000 (03:59 +0000)
commit278f958c61e973975bf63b7a82f3d8322ea16c00
treef7d6053e91ae33afe8c3b62de9df2dc0dbb24f24
parent2444080ca4f1f63d647272650aae874360c604cd
When emitting an instruction which depends on both a post-incremented
induction variable value and a loop-variant value, don't force the
insert position to be at the post-increment position, because it may
not be dominated by the loop-variant value. This fixes a
use-before-def problem noticed on PPC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/PowerPC/lsr-postinc-pos.ll [new file with mode: 0644]