I sure hope so. The semantics are trivially identical, the optimizations should be as well, by default - they should depend on semantics, not syntax. And GCC in another comment under this thread seems to be doing similar or identical optimizations in both cases.
I wholly admit that this implies nothing about all optimizers. But it's a pretty reasonable one to expect.