From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7869A3858C83; Tue, 1 Nov 2022 22:56:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7869A3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667343374; bh=TJ628TAYT+czznxRMGgvGd7FJPhn9ahhckWeuvypOIs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bB5faxW5nvU8BbYWj9TXpcSim9ylUe+LycArAJqyE2pyZtN+XXQmBEg+MaEXPNp57 KapfzKsOTO0sUIBb6g5yg8q8K9boRA+b0YikA18F3Mj6Iyp4I5rVBAVmcwywDxTxIR ThvWdRbnYPNP8hsAqRqiegNyv4kc1Ot8lrc35JHI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107502] GCC fails to detect foo(first_const,last)-first_const+first pattern Date: Tue, 01 Nov 2022 22:56:14 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D107502 --- Comment #5 from Andrew Pinski --- (In reply to cqwrteur from comment #4) > (In reply to Andrew Pinski from comment #3) > > I filed PR 107503 with the reduced testcase for the test2 case (after h= aving > > fixed the return issue). >=20 > sorry about that. it should be vector case > https://godbolt.org/z/f9TYMxb7c Right, PR 107503 has the reduced testcase for your vector (test2 function) testcase.=