On 9/29/23 04:40, Roger Sayle wrote:
SUBREGs aren't shared, though I don't think that changes any of your conclusions.I agree that this looks dubious. Normally, if the middle-end/optimizers wish to reuse a SUBREG in a context where the flags are not valid, it should create a new one with the desired flags, rather than "mutate" an existing (and possibly shared) RTX.
jeff