From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 814133858C53; Fri, 2 Dec 2022 15:00:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 814133858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669993259; bh=7GwRKQeboL1yPWl/rqaXRAb0eSGtid94Hfc5FTL7dOs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YAZfP8NTQEVAf2nBLR/wmYihq7h8I40Tbz+zRuSuLMixkQBo0D1JcEZBmC/NJ9mth aJM019XqiVYZ6OSc5HYQLpXio55m5Q44d7O05kdZynAZfN9dbiDYN+HUHA9cAg5qGC XxK3Zg80SWHGuEADxIPZRJ4SWKHg4hZtTBLWaBls= From: "marxin at gcc dot gnu.org" 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:00:59 +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: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin 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 #6 from Martin Li=C5=A1ka --- > this code should not be treated as if-else-if-else-if. Why? It's an equivalent representation as all ifs have a return statement. = One another equivalent representation is: switch (dst_port) { case 15: case 23: case 47: case 45: case 42: case 1: case 2: case 3: return 1; default: return 0; }=