In some cases the order conditions are applied in can pessimize results.
In general, applying conditions with constant operands should lead to
better results. I think ideally we would apply conditions with operands
that are not involved in any other condition first, but processing
conditions with constants should be a good start.
Alternatively we could re-write all collected expressions after
collecting them. But that's likely more expensive.
Depends on D126460.