Don't unconditionally suppress hoisting of instructions with implicit
authorDan Gohman <gohman@apple.com>
Sun, 28 Feb 2010 00:08:44 +0000 (00:08 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 28 Feb 2010 00:08:44 +0000 (00:08 +0000)
commita363a9b71afcf326d376445f6f3cae0c36e6e9d9
tree6f3c3a6ffd81cca9d0b1d4aeb48d96ed7cb36a3b
parent53a50e2546743e6f2d896ba37e85e7ee983a6b95
Don't unconditionally suppress hoisting of instructions with implicit
defs or uses. The regular def and use checking below covers them, and
can be more precise. It's safe to hoist an instruction with a dead
implicit def if the register isn't live into the loop header.

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