[all computers I use for ordinary development are down now because of the floods, so sorry for sending new email]. Jeff, I am not exposing the REGs to GCSE as they do have rtx_cost of 0 and I am exposing only those expressions having nonzero costs. If you like, I can change to condition to GET_CODE (x) != REG && GET_CODE (x) != SUBREG. Honza