[x86] generalize reassociation optimization in machine combiner to 2 instructions