From 2930845065af83e30eac7a571fc58d7eef7ed912 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 12 May 2008 19:47:18 +0000 Subject: Revert the previous commit. Go ahead and hoist rematerializable instructions. llvm-svn: 50990 --- llvm/lib/CodeGen/MachineLICM.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp index 82958305445..c2adb1e8b73 100644 --- a/llvm/lib/CodeGen/MachineLICM.cpp +++ b/llvm/lib/CodeGen/MachineLICM.cpp @@ -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 Preds; // Non-back-edge predecessors. -- cgit v1.2.3