Revert the previous commit. Go ahead and hoist rematerializable instructions.

llvm-svn: 50990
This commit is contained in:
Bill Wendling 2008-05-12 19:47:18 +00:00
parent 11c0772a30
commit f3c4b7fbb5

View File

@ -297,10 +297,6 @@ bool MachineLICM::IsLoopInvariantInst(MachineInstr &I) {
void MachineLICM::Hoist(MachineInstr &MI) {
if (!IsLoopInvariantInst(MI)) return;
// Hoisting things that are trivially rematerializable may result in worse
// code than before.
if (TII->isTriviallyReMaterializable(&MI)) return;
std::vector<MachineBasicBlock*> Preds;
// Non-back-edge predecessors.