On 3/17/2026 5:48 AM, Robin Dapp wrote:
Thanks for looking into this, it fits nicely into the ongoing VLS improvements.
Without having looked at every detail, I wonder if it makes sense to have
note_pattern_stores _not_ strip pseudo subregs instead for more general
applicability. That's a two-sided of course, we'd need fewer changes in
rtlanal but more in the users of note_stores. Several of them already have a
REG_P check and wouldn't need to be changed but, either way, it would
certainly be invasive.
Have you already experimented with that by any chance?
That'd be pretty invasive. I looked at something similar a few years
back and concluded that if we were to change the SUBREG handling in
note_stores or note_uses (I forget which I was looking at) that it'd
need to be a distinct API.
Jeff