Daniel Lemire personal blog

Optimizing compilers reload vector constants needlessly

Modern processors have powerful vector instructions which allow you to load several values at once, and operate (in one instruction) on all these values. Similarly, they allow you to have vector constants. Thus if you wanted to add some integer (say 10001) to all integers in a large array, you might first load a…
Points
151
HN comments
95
Submissions
1
Cited by
0 commenters

Software EngineeringSystems & Performance2022

On Hacker News

SubmittedTitle on HNPointsComments
Dec 6, 2022Optimizing compilers reload vector constants needlessly by ibobev15195

More from Daniel Lemire

All 87 posts →

Related posts from the same era