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? -- Regards Robin
