www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - fyi: COMDAT linkage -> less LLVM optimization

reply Johan Engelen <j j.nl> writes:
We emit most functions in COMDAT sections, but with LLVM 3.9 we 
loose out on some optimizations:
http://llvm.org/releases/3.9.0/docs/ReleaseNotes.html#changes-to-llvm-s-ipo-model

Don't know what the impact will be.
(I've always disliked putting everything in COMDAT sections, so 
it's extra ammunition against that)

-Johan
Sep 04 2016
next sibling parent Kagamin <spam here.lot> writes:
Maybe compile to llvm IR, remove comdat attributes and compare 
assembler output?
Sep 05 2016
prev sibling parent Kagamin <spam here.lot> writes:
https://llvm.org/bugs/show_bug.cgi?id=26774 uh, I don't think one 
can do such optimizations on public functions.
Sep 05 2016