From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 954EA3858D37; Fri, 3 Mar 2023 08:21:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 954EA3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677831669; bh=b71t1ZKm/COqp/3j/zPzeK4LPSFYaVy8TPFsjLDCRKs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iA6OMnEw/6+ULJoNFRmMe8Z0ywhaUzSYvzyiGYDM58cIXBghDk3GkJ40kPjTOhUE+ VdNM3oTeEBldvAqWkP4r55jaeZA/JJ6pZGeXdzyXr5qtk5SwfF+9V8CjkpuzTqfIDF SJtFJG6UFx3OBcWsCnDNFiWEM/ZKrt+OsMDBXBLs= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/108990] Too restrictive precision check in fold and simplify pattern for PR70920 Date: Fri, 03 Mar 2023 08:21:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth 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: --- 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=3D108990 --- Comment #2 from Richard Biener --- Consolidating these kind of duplicates would be nice. Note in this particu= lar case we should order the more specific pattern earlier (diagnosing that with -v would be nice). Implementing order preserving differently, for example by expressing 'A must be matched before B' explicitely would be a good improvement as wel= l. If you add -v to the genmatch command-line you'll see 273 cases where we forcefully re-start matching because of intermediate "more specific" patter= ns.=