Compilers are pretty damn good at doing that by now.
I can believe there's some direct assembly usage down in the depths of Unity and Unreal engines, but the average game dev is probably not going to touch it.
There's a few around me and you'd be lucky if they've still got a roof. If you've not got a pot to piss in, £80k of repairs are not on your shopping list.
Compilers are pretty damn good at doing that by now.
I can believe there's some direct assembly usage down in the depths of Unity and Unreal engines, but the average game dev is probably not going to touch it.