In rememberInstruction, if the value being remembered is the
authorDan Gohman <gohman@apple.com>
Sun, 14 Feb 2010 03:12:47 +0000 (03:12 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 14 Feb 2010 03:12:47 +0000 (03:12 +0000)
commit1d826a76f591afea445489b9a5485c345e66bf87
tree832e56ae519da4b5d513425249705e5420cdce00
parent0402577f3888889afb7a2bd18399987daefdecbe
In rememberInstruction, if the value being remembered is the
current insertion point, advance the current insertion point.
This avoids a use-before-def situation in a testcase extracted
from clang which is difficult to reduce to a reasonable-sized
regression test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96151 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolutionExpander.h
lib/Analysis/ScalarEvolutionExpander.cpp