From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 77E853852235; Wed, 30 Nov 2022 13:57:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77E853852235 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669816679; bh=IF7lIl22+f8wOygnU4V2ex/eeoEF+6JXBJqmnJ9rMIo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N6ubI6Lhfl1LcqzC+Sv1XZdwyOGDzTHYsNSLCs6Mg2rjQJW3xw7bZyJsL9bnjlbfl c66f5ENEJ6qbvWvVLpA1gAi4O4mf3ZgnyZYdBnGgkpazMXWjsJZMaxwzKgznKNA6uX wzg/TChV5YWzUQDCSQ6W+gxZOXxWqqZ4Yk+tceao= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107905] 2x slowdown versus CLANG and ICL Date: Wed, 30 Nov 2022 13:57:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.3.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D107905 --- Comment #5 from Alexander Monakov --- Not sure what you don't like about the inputs, they appear quite reasonable. Perhaps GCC's estimation of bb frequencies is off (with profile feedback we achieve good performance). Georgi: you'll likely see better results with profile-guided optimization. = You can first compile the benchmark with -O2 -fprofile-generate, run the output= (it will generate *.gcda files), then compile again with -O2 -fprofile-use. For Clang the options are spelled -fprofile-instr-generate and -fprofile-instr-= use, respectively.=