Skip to content

Commit

Permalink
Fix #767, that assembly creates bugs in LLVM >= 15 with -inline -O
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Piolat committed Sep 18, 2023
1 parent 95e363a commit 5f9838e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions graphics/dplug/graphics/mipmap.d
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
Mipmap pyramid implementation.
Copyright: Guillaume Piolat 2015-2016.
Copyright: Guillaume Piolat 2015-2023.
License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
*/
module dplug.graphics.mipmap;
Expand All @@ -26,7 +26,9 @@ else version( D_InlineAsm_X86_64 )
}

// Because of unability to load globals in PIC code with DMD, only enable some assembly with LDC
version(LDC)
// Then also disabled in LDC because of Issue #797
// PERF: speed-up with intrinsics instead
/*version(LDC)
{
version( D_InlineAsm_X86 )
{
Expand All @@ -36,7 +38,7 @@ version(LDC)
{
version = inlineAsmCanLoadGlobalsInPIC;
}
}
}*/


/// Mipmapped images.
Expand Down

0 comments on commit 5f9838e

Please sign in to comment.