aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-10-09 06:31:25 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-10-09 06:31:25 +0000
commit64efb555ceb67aa5dc6554140cc2b4ebc0eab23a (patch)
tree4af70a66417e4c2c4a0cf51b82cda801f3a1e349
parent4517850845e265b9ee2f23e0bd0d28eeefd6029a (diff)
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
-rw-r--r--lib/CodeGen/MachineLICM.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp
index e60139cb92..5e2d39e1ab 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;