https://bugs.winehq.org/show_bug.cgi?id=30639
--- Comment #50 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Ruslan Kabatsayev from comment #49)
It seems strange that by default Wine doesn't enable any optimizations at all. (Tested on wine-3.1-286-g389c3ad.)
How are you building it? It sets -O2 for me, not sure what it keys that off of. In any case, it's an autotools thing, check configure and config.log output.