From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E9B943858298; Fri, 27 Oct 2023 13:08:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E9B943858298 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698412091; bh=+UiB7vewvRP58INy97BYN0M/kUEISeMC07pmUz907BU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y0hI0LilrXeboFK/aitIwgqJCFhijYQfKaPGejWO2at+SKis8atDCZTeO4gQYvV9u 7FFV8KBSb0Ny0+KK9UslbmY8UCjPE/R+HOOEKZQtkuHDKPrLfTHUpTERPX8ZLrmosf dCPBmNPjvkRDhV0ymRQDagYFnUbL/FQvZEl7/0+4= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112104] loop of ^1 should just be reduced to ^(n&1) Date: Fri, 27 Oct 2023 13:08:11 +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: 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: everconfirmed cf_reconfirmed_on bug_status 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=3D112104 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2023-10-27 Status|UNCONFIRMED |NEW --- Comment #2 from Richard Biener --- Confirmed. I think it should apply even to int foo(long n3, int j, int x) { for(int i=3D0; i