https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101404
Bug ID: 101404 Summary: cond_removal_in_popcount_clz_ctz_pattern and factor_out_conditional_conversion do a similar transformation Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P3 Component: tree-optimization Assignee: pinskia at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Looking into what code could be simplified, I noticed cond_removal_in_popcount_clz_ctz_pattern and factor_out_conditional_conversion are really doing a similar transformation and could even be combined. Yes cond_removal_in_popcount_clz_ctz_pattern checks the conditional part of the if statement but I don't think it needs to really.