From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4175B3857BA2; Fri, 15 Mar 2024 06:18:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4175B3857BA2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710483501; bh=OwfhAtN8RgYH9J4Kwf0vBsh2yfXGXyvCZyjh0KA9Jm8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=d3v6sZC4A827ES4yv1OViLvWyGUPguDA/fDZS2s3o4pGaDJDzfpgK/E7dXeyjgvP8 rT5/rR+0fGDx7tutTyZhD98ho57c6vYGYxtuMWX7QS1kd2cKn2/M+XZBTdcf9BVBeC EpU6+l9ZGVhWJBo9xtKYSscuOtKsRzgn/3h78cRs= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114108] [14 regression] ICE when building opencv-4.8.1 (error: type mismatch in binary expression) since r14-1833 Date: Fri, 15 Mar 2024 06:18:19 +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: 14.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: P1 X-Bugzilla-Assigned-To: belagod at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.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=3D114108 --- Comment #10 from GCC Commits --- The master branch has been updated by Tejas Belagod : https://gcc.gnu.org/g:81f3d963e05de8b17d4ccc7667ead9ed156193a4 commit r14-9487-g81f3d963e05de8b17d4ccc7667ead9ed156193a4 Author: Tejas Belagod Date: Wed Mar 6 15:30:26 2024 +0530 vect: Call vect_convert_output with the right vecitype [PR114108] This patch fixes a bug where vect_recog_abd_pattern called vect_convert_output with the incorrect vecitype for the corresponding pattern_stmt. vect_convert_output expects vecitype to be the vector form of the scalar type of the LHS of pattern_stmt, but we were passing in the vector form of t= he LHS of the new impending conversion statement. This caused a skew in ABD's pattern_stmt having the vectype of the following gimple pattern_stmt. 2024-03-06 Tejas Belagod gcc/ChangeLog: PR middle-end/114108 * tree-vect-patterns.cc (vect_recog_abd_pattern): Call vect_convert_output with the correct vecitype. gcc/testsuite/ChangeLog: * gcc.dg/vect/pr114108.c: New test.=