r/programming • • Apr 19 '21

Visual Studio 2022

https://devblogs.microsoft.com/visualstudio/visual-studio-2022/
1.9k Upvotes

475 comments sorted by

View all comments

Show parent comments

1

u/screwthat4u Apr 19 '21

Modern CPUs have many registers that shadow the “public” registers based on data access patterns

2

u/nikomo Apr 19 '21

That is what I said, yes. But the guessing inside the CPU isn't going to be perfect, it makes more sense to let the compiler handle it, or at least provide better hinting to the CPU.