popcnt intrinsic unused

Stefan Koch via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Wed Jan 20 09:35:02 PST 2016

On Wednesday, 20 January 2016 at 09:03:16 UTC, Kagamin wrote:
> On Tuesday, 19 January 2016 at 20:01:31 UTC, David Nadlinger 
> wrote:
>> Either way, one of the next important goals for LDC should be 
>> finally implementing proper force-inline support (that, unlike 
>> DMD's pragma, also works when the inliner is not otherwise 
>> active, and across all module boundaries).
> Why? Stefan is compiling with -O3.

Because the runtime is not visible as source-code.
If it were, llvm could make this into the popcnt instruction.
But the inliner is blind when it calls a library...

More information about the digitalmars-d-ldc mailing list