[Bug tree-optimization/107130] [13 Regression] wrong code with -Os -fno-tree-ccp -fno-tree-forwprop -fno-tree-fre since r13-2900-g001c60ccfeaf9a48

aldyh at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 3 15:39:55 GMT 2022


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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |aldyh at gcc dot gnu.org

--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #3)
> > Nice, so ffs() with a propagated constant argument now does a popcount()
> > instead?
> 
> It should not. The problem is op_cfn_popcount is shared by both popcount and
> ffs, but the newly added transformation is valid only for popcount.

Ughh, indeed.  Thanks for the analysis Martin.


More information about the Gcc-bugs mailing list