Fix r141744.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 12 Oct 2011 00:09:14 +0000 (00:09 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 12 Oct 2011 00:09:14 +0000 (00:09 +0000)
commit7efba85d414949febe51100e298077233526787c
tree38f1da200c4c67544f0ce37508048cbf30946980
parent1c062c24aba08962b4687f56b274f182e5b7a8e5
Fix r141744.
1. The speculation check may not have been performed if the BB hasn't had a load
   LICM candidate.
2. If the candidate would be CSE'ed, then go ahead and speculatively LICM the
   instruction even if it's in high register pressure situation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141747 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineLICM.cpp