1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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

llvm-svn: 63856
This commit is contained in:
Evan Cheng 2009-02-05 08:51:13 +00:00
parent b36e3e34e7
commit 078ac6071d

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;