From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CDE1E384A026; Tue, 28 Apr 2020 07:04:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CDE1E384A026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588057483; bh=fh8ozklAORoX3f1FxUq3qGDpadQ+nw4J0dkwYHer/Mk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UaRxN+cBKJ4wThq6mJJzzVMNPMbtQ00POe1niCO7/dKvWOfFJfUsivm1FJy/uwt7T uZbXKYbpMgUt9rsD9aEchg0XrwkibrWBUf63OTgXUSH4eBJtJAgqZM86b1xCqyGrVu c7AHfbtR/dWWBTVKz74/zit5fl6eMHu4u0/L/mRA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94727] [10 Regression] GCC produces incorrect code with -O3 since r10-5071-g02d895504cc59be0 Date: Tue, 28 Apr 2020 07:04:43 +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: 10.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2020 07:04:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94727 --- Comment #10 from CVS Commits --- The master branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:e62a820d686d1fa97a9eefdc65ca07d8f96ac9f4 commit r10-8006-ge62a820d686d1fa97a9eefdc65ca07d8f96ac9f4 Author: Richard Sandiford Date: Tue Apr 28 08:04:29 2020 +0100 vect: Fix COND_EXPRs involving variant booleans [PR94727] The previous patch for this PR handled separate comparisons. However, as arm targets show, the same fix is needed when handling comparisons embedded in a VEC_COND_EXPR. Here too, the problem is that vect_get_constant_vectors will calculate its own vector type, using truth_type_for on the STMT_VINFO_VECTYPE, and the vectoriable_* routines need to be consistent with that. 2020-04-28 Richard Sandiford gcc/ PR tree-optimization/94727 * tree-vect-stmts.c (vect_is_simple_cond): If both comparison operands are invariant booleans, use the mask type associated w= ith the STMT_VINFO_VECTYPE. Use !slp_node instead of !vectype to exclu= de SLP. (vectorizable_condition): Pass vectype unconditionally to vect_is_simple_cond.=