From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B22533858D3C; Fri, 2 Dec 2022 15:15:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B22533858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669994129; bh=K5laJq/Hs7MH+tWkxuFW3xyWv3ocvcGuTOrN00uW0t4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IEYOE0YnHz1cMcMRRrz9lwJEwmRgeO5jHwH2yBtJe65z8DOraqUOQD8qBLNusLgcV F5rZIX0LbOlUyp/J1MUZZGZQDLKPmhb4cNdGGoTgjWGhygqyON6nGaJQeeSS/m2U59 dWbyNI/ljNgwout5gljp48/byQx3FPbn+z+n4Hjo= From: "socketpair at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107767] [13 Regression] switch to table conversion happening even though using btq is better Date: Fri, 02 Dec 2022 15:15:29 +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: socketpair at gmail dot com 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: 13.0 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=3D107767 --- Comment #8 from =D0=9A=D0=BE=D1=80=D0=B5=D0=BD=D0=B1=D0=B5=D1=80=D0=B3 = =D0=9C=D0=B0=D1=80=D0=BA --- Okay, but why switch-case is not handled using fast implementation using ma= sks (when difference between smallest and biggest integer <=3D64 ? See the first function in my first message where it works as expected. Seems, the problem is not in converting to switch-case, but missing optimisation for switch-case case.=