Movement against float.init being nan

rikki cattermole rikki at cattermole.co.nz
Tue Aug 30 16:01:24 UTC 2022


On 30/08/2022 10:23 PM, Guillaume Piolat wrote:
> Do you even need it for performance? Not sure, as just working on your 
> vectorization, be it automatic or explicit, will leads to way better 
> results. At least, that's my experience using the LLVM backend.

I've talked about this quite a bit with Bruce.

Our conclusion has been that explicit vectorization is usually the wrong 
path to take. It eats up developer time and provides very little benefit 
in majority of cases. If you feel like you need to reach for it, you 
probably haven't communicated to the backend enough information _to 
vectorize_.

One bit of information that both LLVM and GCC can take advantage of 
``assert(arg1 !is arg2);`` such a simple assert! Yet very valuable 
aliasing information in it. I love asserts.


More information about the Digitalmars-d mailing list