diff options
| author | Mai M <mathew1800@gmail.com> | 2022-05-02 19:11:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-02 19:11:56 -0400 |
| commit | f8c603a2dd6a79dbf6efb172bcde50508918a02a (patch) | |
| tree | b1fa44a22c8512f22a8c2263d4f4f4abf4a2a2df /Source/UnitTests/Common/x64EmitterTest.cpp | |
| parent | dcf8bd7733ae6393b879f4795b46104d67bba651 (diff) | |
| parent | 64cd4cc86fa891150b3d4aae6e10826bc44d9ba3 (diff) | |
Merge pull request #10618 from shuffle2/fast-test
msbuild/msvc: compile speed improvements
Diffstat (limited to 'Source/UnitTests/Common/x64EmitterTest.cpp')
| -rw-r--r-- | Source/UnitTests/Common/x64EmitterTest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/UnitTests/Common/x64EmitterTest.cpp b/Source/UnitTests/Common/x64EmitterTest.cpp index d374391876..439ac5e9d6 100644 --- a/Source/UnitTests/Common/x64EmitterTest.cpp +++ b/Source/UnitTests/Common/x64EmitterTest.cpp @@ -19,6 +19,11 @@ #include "Common/StringUtil.h" #include "Common/x64Emitter.h" +#ifdef _MSC_VER +// This file is extremely slow to optimize (40s on amd 3990x), so just disable optimizations +#pragma optimize("", off) +#endif + namespace Gen { struct NamedReg @@ -1243,3 +1248,7 @@ FMA4_TEST(VFMADDSUB, P, true) FMA4_TEST(VFMSUBADD, P, true) } // namespace Gen + +#ifdef _MSC_VER +#pragma optimize("", on) +#endif |
