That’s entirely fair. And tbh most of the time I’m looking at a hot loop where the compiler did something dumb, the first question I ask myself is “is there some other way I could write this code so that the compiler will recognize that the more performant code is an option”. Compilers are really quite good and fully featured these days, so there usually is some code transformation or pragma or compiler flag that will work for my specific use case.
That’s entirely fair. And tbh most of the time I’m looking at a hot loop where the compiler did something dumb, the first question I ask myself is “is there some other way I could write this code so that the compiler will recognize that the more performant code is an option”. Compilers are really quite good and fully featured these days, so there usually is some code transformation or pragma or compiler flag that will work for my specific use case.