2 ms·
I'd quite like it to emit an error and fail. If some target architectures won't vectorise the code, I can always add the expectation conditionally. I'm not so
by andrewaylett 3y ago
I'd quite like it to emit an error and fail. If some target architectures won't vectorise the code, I can always add the expectation conditionally.
I'm not so much trying to catch deliberate changes, where a warning might make sense as I'd be (maybe) looking for it, but changes that break autovectorisation as a side effect -- maybe something can't be inlined any more, maybe a new compiler version introduces a new optimisation that causes a cascade of tiny changes. I'd hope that we would catch the difference in performance, but it's easier to notice a compilation failure than a performance drop.