From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-oln040092072093.outbound.protection.outlook.com [40.92.72.93]) by sourceware.org (Postfix) with ESMTPS id 046F83857011 for ; Fri, 28 May 2021 06:48:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 046F83857011 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=hotmail.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bernd.edlinger@hotmail.de ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gx7l6nt2GCoj3EqYRTze//QLVbnZ8/BM9BhPtiKb+BCys/brauiSnO3ofc9QVe6Qes5ICJ260WVGthCRSmoQvB8pfjowLR9Ako3ZBMhDt+zNeVR6BMwQ4Z4VvpYuql/brC3oBFO0wgdfNBI3Twns4S/qX0b457BXS6yvjfKvJdiien4Hjpa5tCYyWXfD1FP7wld0ChAi991gZsRVWVNx9U0DDt1gMlBvdEQ3c8s4TIqrZYbz9kOXk9x72XkH7RTloTvTQk0igPq3Ao11APouENTzo5T/+frfp192J8vw2Ur5uuSGsovpBRM5L8eEpkaf3WsY3RV8p51EDdvdovhrEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qy46x4yF6g10qiXBFNCGP6C1qzH7YUBYLBbL+bQ+qRw=; b=ErJLZfAjAjz9fkp425Tg25iNdYcrtz9ECW5kPGkHZcAD/koD0NyNpLtaGyhSP6Y6GK0GvBVUjef9RvyvYG6Jfioq2G1vIIZqUfC97bz7Iw+aEiQCRWemjO9MlI21LvUt9Kgq8HH2yH+HseQk8OIzLzm0TK+RUFXs/o0d6fZdvI5t+GXX30cDbKEEICbjyPGTK3bhy1mzQmZ7Tj7gMZl6bEptPJXz3tXvVgX1skIQnTYNlUM2gv8S1vM6lIv4mbMIH6npGiEbquWn1L+oXIYLpGtJM/c5GurH0ElKsSO7uA+t/aI0skeJF3oGPlTeevtq1PSUTIPqhj0N97qA6rt6gw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from VE1EUR03FT012.eop-EUR03.prod.protection.outlook.com (2a01:111:e400:7e09::44) by VE1EUR03HT006.eop-EUR03.prod.protection.outlook.com (2a01:111:e400:7e09::103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Fri, 28 May 2021 06:48:32 +0000 Received: from AM8PR10MB4708.EURPRD10.PROD.OUTLOOK.COM (2a01:111:e400:7e09::4f) by VE1EUR03FT012.mail.protection.outlook.com (2a01:111:e400:7e09::211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.30 via Frontend Transport; Fri, 28 May 2021 06:48:32 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:67F76AF3816068F5C09F0F6A0E1FF9A8BDDD32F58CE8CD2A27D7C2C1461ABB0D; UpperCasedChecksum:C9B33E1548161FBA07BCA6BD0AD134131D330D26B48A3AD32AD6AEC392A83368; SizeAsReceived:7994; Count:48 Received: from AM8PR10MB4708.EURPRD10.PROD.OUTLOOK.COM ([fe80::ad12:6a2c:b949:f65d]) by AM8PR10MB4708.EURPRD10.PROD.OUTLOOK.COM ([fe80::ad12:6a2c:b949:f65d%5]) with mapi id 15.20.4173.020; Fri, 28 May 2021 06:48:32 +0000 Subject: Re: [PATCH] Generate gimple-match.c and generic-match.c earlier To: Richard Biener Cc: "gcc-patches@gcc.gnu.org" References: From: Bernd Edlinger Message-ID: Date: Fri, 28 May 2021 08:48:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TMN: [dmluM/RP++PVVUq2XiP1EUTTsFkd5rIu] X-ClientProxiedBy: FR3P281CA0050.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4a::19) To AM8PR10MB4708.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:364::23) X-Microsoft-Original-Message-ID: <31b9ac02-ce24-56df-7628-d1dd31331132@hotmail.de> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.101] (84.57.61.94) by FR3P281CA0050.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.9 via Frontend Transport; Fri, 28 May 2021 06:48:31 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 9cf9ad69-f5e3-499f-14f7-08d921a49b3a X-MS-TrafficTypeDiagnostic: VE1EUR03HT006: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9V5nEbYpzw7M/BAKT6LmVNajno/4WiQb5U4gnI/AmZ6GtMwU3yrHf0iIxpLe6aTpzJaPMs3BN6DKTcaAK5Kiv4OoBTF2/8MnP6Gtb1gOCK+JaBHCw+OCGoNHZ7UdVJ2aKDV2Fs/sHmLt66pFHdqZ6bjmvojw4D/VE8u3CsWBaTUaqZZPStvKRtbe0NTx2BEXuDkxD0kyQW5bMTcI4jdf280+Y1Vg7l3ughYSSyF2XdhYWsQJoRyfLTUymL7AQleI8Rq2kbxCsZhDTtBmxwv7DWBS78HAX+591QTfStzfU3TXWj6x3vxOg2+Akr/H+O2adFt0WVTdrd5kOwva0vwz+3uohBQmdbeKRntLObGr3H/nAY3G5M31wbuUi7SwqDrd8QR+KilQURakagtMFBQUFQ== X-MS-Exchange-AntiSpam-MessageData: tbCOXi2eymSeyMLbuq66iV5yu7PWYAINr4P9oDdx5AeX9wLqjmPSJJZYnYGkXtQQfh7jplxdllBKuE+XulgzaA3/eWzl0tFEgRy6+xl4xyghwy4cgZoG5lrJJJeUzVO+e+UzUx4soRPcDX0QmkVDsw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9cf9ad69-f5e3-499f-14f7-08d921a49b3a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2021 06:48:31.9820 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT012.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR03HT006 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, FORGED_MUA_MOZILLA, FREEMAIL_FROM, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 May 2021 06:48:36 -0000 On 5/28/21 8:41 AM, Richard Biener wrote: > On Fri, 28 May 2021, Bernd Edlinger wrote: > >> >> >> On 5/28/21 6:42 AM, Bernd Edlinger wrote: >>> Hi, >>> >>> I was wondering, why gimple-match.c and generic-match.c >>> are not built early but always last, which slows down parallel >>> makes significantly. >>> >>> The reason seems to be that generated_files does not >>> mention gimple-match.c and generic-match.c. >>> >>> This comment in Makefile.in says it all: >>> >> >> Oh, dear, git commit did eliminate the comments >> starting with "#" >> the mentined comment is >> >> # Dependency information. >> >> # In order for parallel make to really start compiling the expensive >> # objects from $(OBJS) as early as possible, build all their >> # prerequisites strictly before all objects. >> >>> $(ALL_HOST_OBJS) : | $(generated_files) >>> >>> So this patch adds gimple-match.c generic-match.c to generated_files. >>> >>> >>> Tested on x86_64-pc-linux-gnu. >>> Is it OK for trunk? > > OK. Does it really help though? > Yes, I guess so, at least a little bit. Prior to this patch the whole build stage was completed for everything then those two big files got generated, and then there are only two large files compiled in parallel for several minutes at least. So a make -j8 utilizes only 25 % cpu power and make -j16 only 12.5 % utilization. That can certainly be a bit annoying. Bernd. > Thanks, > Richard. > >>> >>> >>> Thanks >>> Bernd. >>> >>> >>> 2021-05-28 Bernd Edlinger >>> >>> * Makefile.in (generated_files): Add gimple-match.c and >>> generic-match.c >>> >> >