Another comment from me after half a century of programming experience:
That example would not have happened had you followed any recommended good coding style.
Keep it simple, be more verbose, only one action per line, etc.
Let the compiler do the optimization!
Writing convoluted code can become even counterproductive for the optimizer!
Your profit: less errors, easier debugging, better readability, better maintenance.