From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 599FB3858C54; Tue, 5 Mar 2024 10:48:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 599FB3858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709635733; bh=KD3KVjNY2B/0ryZ9mU9TyVl2vJE5krtBAy6mam4ru4A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TscFWnc6HG74UOPK7gPzeB/MRkOA3C5IryCX6CehQd93taw6MxWyTk9mH1ULwSdaj 7INNDyKeUMgTbJgC4Photc0MWXlgJp27AdCHkUr7GDnO3ebP5NfwjGjNg54tcYYRpM gKZHmP96qhiCkth00YVrv6UWvvdyHCsKwax3eP0c= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114232] [14 regression] ICE when building rr-5.7.0 with LTO on x86 Date: Tue, 05 Mar 2024 10:48:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 14.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=3D114232 --- Comment #13 from Uro=C5=A1 Bizjak --- (In reply to Jakub Jelinek from comment #12) > Still, it would be nice to understand what changed > optimize_function_for_size_p (cfun) > after IPA. Is something adjusting node->count or node->frequency? > Otherwise it should just depend on the optimize_size flag which should not > change... The target-dependent issue is with insn patterns we split to. These are ena= bled with "!TARGET_PARTIAL_REG_STALL || optimize_function_for_size_p (cfun)", as they are intended to be combined from movstrict insn pattern (which can FAI= L). So, the condition for V2QI insn is now either !TARGET_PARTIAL_REG_STALL or TARGET_SSE2 (where we disable alternative 0 for TARGET_PARTIAL_REG_STALL targets, but we still emit SSE instruction). Please note that while -march=3Di686 enables TARGET_PARTIAL_REG_STALL, it e= nables SSE2, so the proposed solution won't have much impact. Also, V2QImode is not much used, so I guess the proposed solution is the right compromise.=