mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-20 08:54:08 +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…
x
Reference in New Issue
Block a user