From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2FAA2385E009; Fri, 27 Oct 2023 12:38:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FAA2385E009 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698410299; bh=RLs9N0K6PwvY1Cb0HZm7BLOeNruHQwBJFoHFtbDqaCs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DTTNnaPbWfZGfkrvHmfUkQDKojsMGmqyLckZ9S/HnXh/yAU1yN4eJthxC1ngiyRQI 6QNTbYovJvw6pPQUTWgo1DOB7NaTnvsgZb0qwHoJ541C7jW+olkw4L0VhLiaihOYcd qWeFlpspvrRiJlQSc4hwLeoMXSndSJz5w4Y5zYg4= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111972] [14 regression] missed vectorzation for bool a = j != 1; j = (long int)a; Date: Fri, 27 Oct 2023 12:38:18 +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: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority 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=3D111972 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 --- Comment #10 from Richard Biener --- # j_19 =3D PHI <_14(8), j_22(5)> _9 =3D j_19 !=3D 1; _14 =3D (long int) _9; so the vectorizer interesting thing is whether we can handle (equality) compares the same as other associative operations (apart from the involved cast). Now the above isn't canonical, j_19 ^ 1 was though.=