Machine LICM increases register pressure and it almost always increase code size. For now, disable it for optimizing for size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63856 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2009-02-05 08:51:13 +00:00
parent c5d1a4ffd9
commit 740854bb19

View File

@ -126,6 +126,10 @@ static bool LoopIsOuterMostWithPreheader(MachineLoop *CurLoop) {
/// loop.
///
bool MachineLICM::runOnMachineFunction(MachineFunction &MF) {
const Function *F = MF.getFunction();
if (F->hasFnAttr(Attribute::OptimizeForSize))
return false;
DOUT << "******** Machine LICM ********\n";
Changed = false;