Give Dan and my recent changes, machine LICM is now code size neutral.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 9 Oct 2009 06:31:25 +0000 (06:31 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 9 Oct 2009 06:31:25 +0000 (06:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83624 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineLICM.cpp

index e60139cb9236d23f0b483f058ce33111fbdc94b4..5e2d39e1abeb2ad6a5052b8ee1cbc9ce2ad8fd65 100644 (file)
@@ -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;