ForEach: Set internal linkage for kernel functions
The expanded function is the external visible interface. Setting internal
linkage will influence the cost function of the inliner. Specifically, the
inliner knowns that no external users will use the unexpanded kernel function,
which means it will inline it and remove the original function.
This gives a 22% speedup on the colorcube 3D, 19% on convolve3x3
as well as minor speedups on fisheye.
Change-Id: I9770c92d24dfc7978145e694d1a35829c5432264
1 file changed