From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 396693858C39; Thu, 24 Aug 2023 03:51:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 396693858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692849064; bh=eUYM5LjXl6e0ivk4z9YrYf7qfoVdSN6BOF5XLg361Kw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SX24jPWEzUWYVqopVgncS3hIgVwGMkUHhDcrHLwaextiQao2fRnsD0k8l19J3j/Ff fQja2+Ce7acme+XinAI1VBt+XM/3hTvIvP0PytGLGeIQ58XifRYs/5ZC1Y0csSn+Sc hoFCAiyB2T0N1NDc7es2aZOZ+hex/nLSGRS+dEFk= From: "lehua.ding at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111114] RISC-V: Failed combine extend + vcond_mask when modify by vect_recog_over_widening_pattern Date: Thu, 24 Aug 2023 03:51:03 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: lehua.ding at rivai dot ai 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: --- 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=3D111114 --- Comment #2 from Lehua Ding --- (In reply to Andrew Pinski from comment #1) > There is a match pattern which handles the case where the convert (cast) > will fold both sides of the vec_cond now (since r14-3337-g70c50c87273d94). >=20 > vect__5.14_56 =3D .MASK_LEN_LOAD (vectp_a.12_54, 8B, mask__24.11_52, _6= 7, 0); >=20 > Is there a way to simplify that with the convert? >=20 > Or maybe we want to it if one or the other conversion simplifies .... >=20 > Confirmed. Thanks for the comments. Can we relax this match by removing the modifier "= !"?=