From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 584C93858D3C; Mon, 18 Mar 2024 07:36:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 584C93858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710747408; bh=r0R428JlHwtA/AWupLy5GPeuSOAZncosfYMj+wqCJYg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RlNGLMtY7oDNnUWC3ahMfH4ufISTofwzBQdG3wdLQus2Mmyoh9ydsxFnD+QyaYkdd DHYn8wzQ1foYjLOusB4CVSXw45DDHzh2UIWy99gBP0XY84J+yFG4g+EAy3zM1L7yeU AEwFnfBCK+zoFmzKfSio884KKE3mOFqW2v0Jd5N4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/67683] Missed vectorization: shifts of an induction variable Date: Mon, 18 Mar 2024 07:36:47 +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: 6.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia 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=3D67683 --- Comment #5 from Andrew Pinski --- /app/example.cpp:5:20: note: vect_is_simple_use: operand # RANGE [irange] short unsigned int [0, 2047][3294, 3294][6589, 6589][13179, 13179][26359, 26359][52719, 52719] val_16 =3D PHI , type of def: induction We detect it now. But then it is still not vectorized ...=