From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 363E43851C37; Wed, 21 Sep 2022 07:48:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 363E43851C37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663746481; bh=sDUd20ufpugEPblanB4Vv+rac5Vpdg5vS7GpLZC7P2M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vL5jzNAm6Mp3WD0gAmFiptDP/Z3LpEhlWSsDlc/RD8LOrkhB0/BksdnyIDCONFAoh 8YeqSEwOWOoeRqOZkC0rqaJ4ytQkRD4no1B3GTD9pmBY6RmTY6IRZCw3ac9dU+qdgU dQ1timcWAKg/9+vyNA/LvFI7LhKe+yyGaUovM1BA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106963] [13 Regression] ICE in vect_gen_perm_mask_checked, at tree-vect-stmts.cc:8606 since r13-2503-gc13223b790bbc5e4 Date: Wed, 21 Sep 2022 07:48:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106963 --- Comment #3 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:eddbb81f1254f025d6f1b6b8e7554aa9a3830302 commit r13-2754-geddbb81f1254f025d6f1b6b8e7554aa9a3830302 Author: liuhongt Date: Tue Sep 20 13:22:28 2022 +0800 Don't check can_vec_perm_const_p for nonlinear iv_init when it's consta= nt. When init_expr is INTEGER_CST or REAL_CST, can_vec_perm_const_p is not necessary since there's no real vec_perm needed, but vec_gen_perm_mask_checked will gcc_assert (can_vec_perm_const_p). So it's better to use vec_gen_perm_mask_any in vect_create_nonlinear_iv_init. gcc/ChangeLog: PR tree-optimization/106963 * tree-vect-loop.cc (vect_create_nonlinear_iv_init): Use vec_gen_perm_mask_any instead of vec_gen_perm_mask_check. gcc/testsuite/ChangeLog: * gcc.target/i386/pr106963.c: New test.=