From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 29450385220E; Thu, 17 Nov 2022 21:00:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29450385220E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668718856; bh=Lx6oF5WQTxSUJa2gAVlt0emo7VW/UKnbFKB3oFU5/wg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AAkyQPEQ/4lsL60yPMXcx7cb5ElcUerrVOEXiAhDHxcR7dbwKMWZaMkPMjvM/obT8 5xNOP15Vb2K38jUHvPHDR8JbqvU4NIMdAB/IVVMCrRiy3VlNSEzFoXD6SJ9jjr4Vr4 dAWfVwQNiKIwWmjTqeF4DAOGsVOBON2v1wx6mdOY= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107740] [12/13 Regression] if-to-switch conversion happens for simple predicate function when compiled with gcc but not with g++ Date: Thu, 17 Nov 2022 21:00:56 +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: 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: 12.3 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=3D107740 --- Comment #3 from Andrew Pinski --- >phi-opt1 is the "early phi-opt" which tries not to do it here. Let me expand on that, it tries not to insert a cast here to do the convers= ion from bool to int.=