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

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Robin Dapp <[email protected]>:

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

commit r16-6671-gd4c5d27a7b67759899c90793f47ac25519ce1b8b
Author: Robin Dapp <[email protected]>
Date:   Thu Jan 8 14:22:18 2026 +0100

    forwprop: Use ssizetype for mask [PR123414].

    RVV's vectors can get very large with LMUL8.  In the PR we have
    256-element char vectors which get permuted.  For permuting them
    we use a mask vectype that is deduced from the element type
    without checking if the permute indices fit this type.
    That leads to an invalid permute mask which gets optimized away.

    This patch uses ssizetype as masktype instead.

            PR tree-optimization/123414

    gcc/ChangeLog:

            * tree-ssa-forwprop.cc (simplify_vector_constructor):
            Use ssizetype as mask type.

    gcc/testsuite/ChangeLog:

            * gcc.target/riscv/rvv/autovec/pr123414.c: New test.

Reply via email to