Set SizeLevel to 2 in ReleaseSmall mode

This commit is contained in:
Alexandros Naskos
2018-04-16 03:54:40 +03:00
parent 253ecd5c11
commit 1c85050dad

View File

@@ -100,7 +100,7 @@ bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMM
return true;
}
PMBuilder->OptLevel = target_machine->getOptLevel();
PMBuilder->SizeLevel = is_small ? 1 : 0;
PMBuilder->SizeLevel = is_small ? 2 : 0;
PMBuilder->DisableTailCalls = is_debug;
PMBuilder->DisableUnitAtATime = is_debug;