LCSSA: Try to recover compile time regressions due to SCEV updates.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 31 Oct 2012 16:30:03 +0000 (16:30 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 31 Oct 2012 16:30:03 +0000 (16:30 +0000)
commitccd492c9d6f3cb20b9eb24dc0f102544b482019b
treeffdb92a7a0f5a2af204399392bd5629807b6a1d2
parent4c1b4b1fe794437cbb245b11650d9e4001c9605e
LCSSA: Try to recover compile time regressions due to SCEV updates.

- Use value handle tricks to communicate use replacements instead of forgetLoop, this is a lot faster.
- Move the "big hammer" out of the main loop so it's not called for every instruction.

This should recover most (if not all) compile time regressions introduced by this code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167136 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LCSSA.cpp