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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Stam Markianos-Wright
<stamm...@gcc.gnu.org>:

https://gcc.gnu.org/g:aac12084fc07319d5c8232c51dafa4e297bd5415

commit r11-7830-gaac12084fc07319d5c8232c51dafa4e297bd5415
Author: Stam Markianos-Wright <stam.markianos-wri...@arm.com>
Date:   Thu Mar 25 15:29:41 2021 +0000

    tree-optimization/96974 - avoid ICE by replacing assert with standard
failure

    Minor patch to add a graceful exit in the rare case where an invalid
    combination of TYPE_VECTOR_SUBPARTS for nunits_vectype and
    *stmt_vectype_out is reached in vect_get_vector_types_for_stmt.

    This resolves the ICE seen in PR tree-optimization/96974, however the issue
    of correctly handling this rare vectorization combination is left for a
    later patch.

    Bootstrapped and reg-tested on aarch64-linux-gnu.

    2021-03-25  Stam Markianos-Wright  <stam.markianos-wri...@arm.com>

    gcc/ChangeLog:

            PR tree-optimization/96974
            * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace
assert
            with graceful exit.

    gcc/testsuite/ChangeLog:

            PR tree-optimization/96974
            * g++.target/aarch64/sve/pr96974.C: New test.

Reply via email to