https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107090
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |103216 --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to vfdff from comment #5) > Created attachment 53684 [details] > Add A ? B + CST : B match and simplify optimizations > > Fix the 1st issue of the pattern match There is a generic way of implementing this which I had posted at https://gcc.gnu.org/pipermail/gcc-patches/2021-November/584411.html (you can finish up that patch if you want). Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103216 [Bug 103216] missed optimization, phiopt/vrp?