1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:57:35 +00:00

UserspaceEmulator+LibX86: Turn on -O3 optimization for emulation code

Since this code is performance-sensitive, let's have the compiler do
whatever it can to help us with the most important files.

This yields a ~8% speedup.
This commit is contained in:
Andreas Kling 2020-07-13 20:23:00 +02:00
parent 8656835935
commit a27473cbc2
3 changed files with 14 additions and 1 deletions

View file

@ -29,6 +29,10 @@
#include <LibX86/Interpreter.h>
#include <stdio.h>
#if defined(__GNUC__) && !defined(__clang__)
# pragma GCC optimize("O3")
#endif
namespace X86 {
enum IsLockPrefixAllowed {