popcnt intrinsic unused
Stefan Koch via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Thu Jan 21 04:23:46 PST 2016
On Thursday, 21 January 2016 at 09:03:54 UTC, Kagamin wrote:
> On Wednesday, 20 January 2016 at 17:35:02 UTC, Stefan Koch
> wrote:
>> 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...
>
> If a function has pragma(inline) and inliner doesn't inline it,
> then the pragma is not implemented. And how dmd does it if the
> function source is not visible?
dmd does not. if you use the runtime function popcnt...
it does use the intrinsic if you use the intrinsic _popcnt
More information about the digitalmars-d-ldc
mailing list