I plan to write more about this in a future post, however, one of the challenges is that it’s difficult for an autovectorizer to know how far to unroll if the loop body is complex. A human can use context sensitive information such as that the routine is marked as “never-inline” to simply unroll more. An autovectorizer is a generic tool that needs to perform well (and terminate fast) across many use cases. A human can take more time and optimize longer for a specific use case.
I plan to write more about this in a future post, however, one of the challenges is that it’s difficult for an autovectorizer to know how far to unroll if the loop body is complex. A human can use context sensitive information such as that the routine is marked as “never-inline” to simply unroll more. An autovectorizer is a generic tool that needs to perform well (and terminate fast) across many use cases. A human can take more time and optimize longer for a specific use case.
score 2 · canonical