Is there a way I can tell the compiler to use aggressive for a specific function?
No. Its all or nothing.
Why not compile your whole app as aggressive?
In the past I had some weird issues when I did, I know I should have tracked them down, but reverting to normal solved them and I continued on.
So my line of thinking, is if I can explicitly state for certain functions to be in aggreesive, I know that others won’t be affected. I know it’s a selfish reason and I should simply spend some time tracking down problems (if I still get problems).
Especially since the compiler was updated in 2018r1. It could be that it just works now.