Update on generalized intrinsics experiment
Paul Sandoz
paul.sandoz at oracle.com
Fri Dec 22 23:01:28 UTC 2017
> On 22 Dec 2017, at 14:00, Vladimir Ivanov <vladimir.x.ivanov at oracle.com> wrote:
>
>> This is looking very promising. It’s pleasing to see code gen approach held up without modification.
>> From a code bloat perspective do you think it worth pushing op impls, where amenable, up to the abstract *Vector<S> types?
>
> It's doable, but moving them up in hierarchy plays against JIT-compiler. When the code resides in leaf classes, JIT enjoys working with constants and exact types. If the code becomes shared, those vector shape-specific parameters should be fetched first which becomes a hurdle for the compiler.
>
> It's not a big deal when everything is inlined, but if it's not we end up with multiple calls instead of 1.
>
Got it, being JIT-friendly overrides any reduction in code size.
Thanks,
Paul.
> And the same applies to default implementation. It's much harder for the compiler to specialize the code for particular vector shape when crucial pieces are abstracted away.
>
> Best regards,
> Vladimir Ivanov
More information about the panama-dev
mailing list