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:

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

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