https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109866
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2023-05-17 --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #4) > So I think forwprop could/should do this. > Right now it requires c to be single use but we should detect that somehow > a-b use is reverse dominated by the first use of c. Anyways this might > require a rewrite of parts of forwprop ... I think we could relax the single-use restriction to allow multiple uses in comparisons. Though I hoped to eventually get rid of the non-match.pd comparison forwarding in the pass ...