[Bug tree-optimization/105786] [12/13 Regression] ICE in compute_distributive_range, at tree-data-ref.cc:593 since r12-4283-g6f966f06146be7689af471d152e18ff50c609d99

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 1 13:18:10 GMT 2022


--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:


commit r13-913-g57a8fb92ac4161ebbf9381b009e8c5af843e3e5f
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Jun 1 14:13:01 2022 +0200

    tree-optimization/105786 - avoid strlen replacement for pointers

    This avoids matching strlen to a pointer result, avoiding ICEing
    because of an integer adjustment using PLUS_EXPR on pointers.

    2022-06-01  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/105786
            * tree-loop-distribution.cc
            (loop_distribution::transform_reduction_loop): Only do strlen
            replacement for integer type reductions.

            * gcc.dg/torture/pr105786.c: New testcase.

More information about the Gcc-bugs mailing list