From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 187623858CDA; Fri, 2 Dec 2022 14:27:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 187623858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669991243; bh=ukC8cvsOVWJkY7gRRx2uT0Dh17JyHP39xzlAYyw2o3Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OVnWy9RuDrIES8tkWL1j3f1nW/pQs97MOSyYggIiCYTB4oKI7Hw0yQZDxvkGjkVOZ ibaZCxrN0YOj4mPad7Zj0KmV2R8ozjsED9s9pEhs0+MPtJ++22uP7s/5BqM0lUHICF MYLVXGdz6lleCPAvFOQzX/fYzJqCdgwiSMmFzvYQ= 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 14:27:22 +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 #4 from Martin Li=C5=A1ka --- So the optimization is enabled after r13-1184-g57424087e82db140 where we ne= wly convert if-else-if series to switch, that's later converted by switch conversion pass to the array lookup. Now the question is why the CSWITCH happens with -Os.=