Checking for "zero operands" during the "CanHoistInst()" method isn't necessary
authorBill Wendling <isanbard@gmail.com>
Tue, 11 Dec 2007 18:45:11 +0000 (18:45 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 11 Dec 2007 18:45:11 +0000 (18:45 +0000)
commit650b0527a495acbf7d6ee3343e8c41fae1686148
treea827744c35e521f266ed5d95153e27c0cba154fd
parent6e041c2015dc25140b20e09ed7adbc9b8d6dc62b
Checking for "zero operands" during the "CanHoistInst()" method isn't necessary
because those with side effects will be caught by other checks in here.

Also, simplify the check for a BB in a sub loop.

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