From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D3F93858C20; Thu, 29 Sep 2022 21:32:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D3F93858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664487155; bh=fZd0VJpNoBhVKRQE6zMb+rm9aRb7uU2iJi4QTjdLhDk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DrYoft6EYZBwKw3dGm5Z3brkoSPNVOw65U+qS/Sg29p7G2HievWN91MUDBWahCs5/ TbeAJWytkrzUYZa5Ljz99Oh7t0e6qDUyGCg2LpLo6MShTWk9bRDxqEGBHi8DIi4ma8 eHZqQ8Dy6ziTglKfmg5GlCuYgztBn20a5I3X8GOw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107090] [aarch64] sequence logic should be combined with mul and umulh Date: Thu, 29 Sep 2022 21:32:35 +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: 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: cf_reconfirmed_on component everconfirmed cc 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=3D107090 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-09-29 Component|middle-end |tree-optimization Ever confirmed|0 |1 CC| |pinskia at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski --- A few issues. First is: if (_26 !=3D 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: ht_15 =3D ht_13 + 4294967296; [local count: 1073741824]: # ht_2 =3D PHI This should be done as: tmp_ =3D _26 !=3D 0 tmp1_ =3D (unsigned long) tmp_ tmp2_ =3D tmp1_ << 32; ht_2 =3D ht_13 + tmp2_; And then there is huge pattern matching with respect to doing widening mult= iple here.=