https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78559
--- Comment #12 from Bernd Schmidt <bernds at gcc dot gnu.org> --- Sorry, long pause while editing that comment made me leave out part of what I was trying to say - I meant only discard notes that reference the CC reg. But it seems an unnecessary complication.