From 64efb555ceb67aa5dc6554140cc2b4ebc0eab23a Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 9 Oct 2009 06:31:25 +0000 Subject: [PATCH] Give Dan and my recent changes, machine LICM is now code size neutral. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83624 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineLICM.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp index e60139cb923..5e2d39e1abe 100644 --- a/lib/CodeGen/MachineLICM.cpp +++ b/lib/CodeGen/MachineLICM.cpp @@ -131,10 +131,6 @@ static bool LoopIsOuterMostWithPreheader(MachineLoop *CurLoop) { /// loop. /// bool MachineLICM::runOnMachineFunction(MachineFunction &MF) { - const Function *F = MF.getFunction(); - if (F->hasFnAttr(Attribute::OptimizeForSize)) - return false; - DEBUG(errs() << "******** Machine LICM ********\n"); Changed = false;