https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63743
Yuri Rumyantsev <ysrumyan at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ysrumyan at gmail dot com --- Comment #6 from Yuri Rumyantsev <ysrumyan at gmail dot com> --- We also noticed regression on x86 32-bit targets after this fix and prepared a simple fix which cures it: swap operands of commutative operations is performed if cost of second operand is higher than the first one (the operand cost is number of statements required for producing it). It is done at expand phase inside expand_gimple_basic_block.