The cost/benefit analysis performed by an optimizer will calculate whether the cost of the store to codice_1 is less than the cost of the multiplication; in practice other factors such as which values are held in which registers are also significant.