LLVM Loop Hint Speedup Was Actually LLVM's Vectoriser, Author Finds on Control Test
In earlier posts, the author reported a 5.26x speedup from a custom loop-hint pass on a 1000x1000 matrix addition. A new control experiment showed the two compared binaries differed in two ways, since only one ran the loop vectoriser at all. Adding a vectoriser-only binary with no hint produced the same speedup, while the hint added no measurable gain. Comparing the IR confirmed that the only difference was a single loop metadata node, and the author also found the pass was tagging only the outer loop instead of the innermost one the vectoriser targets. The author has corrected the pass to visit all loops and tag only innermost ones.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in