mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
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:
parent
c5d1a4ffd9
commit
740854bb19
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user