Somehow your several recent posts didn’t get put on my feed until this one sprung something loose. I’ll answer those others separately; sorry for the delay.
Both of these codes involve loops, and to get good code on them requires that the specializer does software pipe-lining at a minimum, and auto-vectorization where relevant. The tool chain isn’t up to that yet. When it is we’ll do another mini-talk, and your codes might be the subject. No promises though 🙂