From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C58413858CDA; Tue, 1 Nov 2022 22:50:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C58413858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667343054; bh=7/BygqYdee6GGdbK7/xTqL3+fkry2/2DE18vJHF3NFA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=egXnLXjGSXXjpFT97TBb3rDDeUlzdPl2S7hvlIbViGp+aNuSXdL9y5u0OGHyE4YDl q64f5oaAV2JnGU+A/G6CFC2bSFp8wihC58hQU1OWuhXkplA7s4n6YhbQ+yjVZJHPM5 x/Ej/mkl2Sshh4CN5DAvJ2/y66qFK8FYmtQ5s1K4= From: "unlvsur at live dot com" 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:50:54 +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: unlvsur at live dot com 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 #4 from cqwrteur --- (In reply to Andrew Pinski from comment #3) > I filed PR 107503 with the reduced testcase for the test2 case (after hav= ing > fixed the return issue). sorry about that. it should be vector case https://godbolt.org/z/f9TYMxb7c=