From patchwork Tue Dec 1 19:40:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 1409029 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=rk8+9gur; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4ClssM45Bdz9sSs for ; Wed, 2 Dec 2020 06:40:54 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7595B3951809; Tue, 1 Dec 2020 19:40:49 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by sourceware.org (Postfix) with ESMTPS id 5A20A3851C19 for ; Tue, 1 Dec 2020 19:40:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5A20A3851C19 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nathanmsidwell@gmail.com Received: by mail-qk1-x72f.google.com with SMTP id h20so2506587qkk.4 for ; Tue, 01 Dec 2020 11:40:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=hC2hr/M14phjqtTgcvbpzZWSBr0/TWqA1CgDQZEO26k=; b=rk8+9gurweg8i4RfJ4Di5Rq/AhswO32i6IAPbo6Q1OasHIMbI6IrYfLXVsUI8cV/Sq 3O8n247ZnNy6/Ru94XARry3m1Bu+0dFSVsd4WomHRo/Ety2whgxxJljApWONyJYuA5iU EprH7r299BFGKlN2wQDuLidUEkfDOkFxqlQ64MtUvjHKcgVH+dKebJOJPqxqEy0RsGbm NHZdCKpWkDsHVhCBsVewrftPfv4cSjORlRkDT88wph0I2cpqsVIaW5SDtcKCbgDFOgrU Sy4tEwzArcP6+gv5BQdlcbQqeT0IOEzdJee/TCpA1b9hjf3PUNzfEdf9yV0Zeo8YxCG+ Piwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-language; bh=hC2hr/M14phjqtTgcvbpzZWSBr0/TWqA1CgDQZEO26k=; b=ldpPCn8J1vhkEhw3kFHOL+vi4ce2D/lsNj7nSubl0jp+2QJq0+97eI3jXDH/pzkFtA tiZjFbmrrfuGbJvwR+b4OkNNeudwOcuBjYxhO73LzNbxh+mUKNCPID8TUDIobmLSX6ap AsfLXDvptI0MnYOQO/Mycojpawnm2ic+wkg4xfdjnK/3Z1qlxCZYDiMGdaPDls4F8VZe AcQUXq2vHRfSv8DifmzuKdiOvslUGWeQsa4B2aInTYjuVLrUkvwSRC43AdZ9EIv1yweQ NwqQb/TotmQhvNZMr4Ce/ssuTLH8Tarx6eJ/Y0/KhMzM+MFjTrc4xB5XAyKfZcVdz7VN cosw== X-Gm-Message-State: AOAM532Egx6zyw3Tg8zruZnhhTpSF2bKTuqM9m8uhlS1vRTHdf2oQIWt I9UIbU2flV2xrGaaYaSA61o= X-Google-Smtp-Source: ABdhPJyQwh1CTY2Ha3deH7a8qCqhxVXc5/X8ynKEGxppUzUjuMr52SimDV2F8z8qG41evz9XtLMrEA== X-Received: by 2002:a37:bd5:: with SMTP id 204mr4553369qkl.377.1606851646752; Tue, 01 Dec 2020 11:40:46 -0800 (PST) Received: from ?IPv6:2620:10d:c0a8:1102:6970:ca91:a99:e1b? ([2620:10d:c091:480::1:7f3a]) by smtp.googlemail.com with ESMTPSA id w21sm645261qki.6.2020.12.01.11.40.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2020 11:40:45 -0800 (PST) To: GCC Patches From: Nathan Sidwell Subject: C++ Module parameters & timers Message-ID: Date: Tue, 1 Dec 2020 14:40:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Language: en-US X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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: , Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Here is the new parameter and instrumentation timers for modules. gcc/ * params.opt (lazy-modules): New. * timevar.def (TV_MODULE_IMPORT, TV_MODULE_EXPORT) (TV_MODULE_MAPPER): New. pushing to trunk diff --git c/gcc/params.opt w/gcc/params.opt index 7bac39a9d58..0366584f94e 100644 --- c/gcc/params.opt +++ w/gcc/params.opt @@ -349,6 +349,10 @@ Maximal stack frame growth due to inlining (in percent). Common Joined UInteger Var(param_large_unit_insns) Optimization Init(10000) Param The size of translation unit to be considered large. +-param=lazy-modules= +C++ Joined UInteger Var(param_lazy_modules) Init(32768) Param +Maximum number of concurrently open C++ module files when lazy loading. + -param=lim-expensive= Common Joined UInteger Var(param_lim_expensive) Init(20) Param Optimization The minimum cost of an expensive expression in the loop invariant motion. diff --git c/gcc/timevar.def w/gcc/timevar.def index 08c21c04009..f2bd58f0f58 100644 --- c/gcc/timevar.def +++ w/gcc/timevar.def @@ -145,6 +145,9 @@ DEFTIMEVAR (TV_CONSTEXPR , "constant expression evaluation") DEFTIMEVAR (TV_CONSTRAINT_NORM , "constraint normalization") DEFTIMEVAR (TV_CONSTRAINT_SAT , "constraint satisfaction") DEFTIMEVAR (TV_CONSTRAINT_SUB , "constraint subsumption") +DEFTIMEVAR (TV_MODULE_IMPORT , "module import") +DEFTIMEVAR (TV_MODULE_EXPORT , "module export") +DEFTIMEVAR (TV_MODULE_MAPPER , "module mapper") DEFTIMEVAR (TV_FLATTEN_INLINING , "flatten inlining") DEFTIMEVAR (TV_EARLY_INLINING , "early inlining heuristics") DEFTIMEVAR (TV_INLINE_PARAMETERS , "inline parameters")