[Bug tree-optimization/122608] `(a ? CST0 : CST1) OP CST3` is not optimized (for gimple COND)

dbarboza at ventanamicro dot com gcc-bugzilla@gcc.gnu.org
Tue Dec 2 20:15:28 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122608

--- Comment #3 from Daniel Henrique Barboza <dbarboza at ventanamicro dot com> ---
I didn't find an existing pattern for it either in match.pd or tree-ssa passes.
The existing patterns I found that matched this bug are on match.pd but are
vector specific.

Just sent a patch to the ML with a proposed fix.


More information about the Gcc-bugs mailing list