From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46485 invoked by alias); 11 Sep 2019 23:27:57 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 46467 invoked by uid 89); 11 Sep 2019 23:27:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=worrisome, gary, wrench, drastically X-HELO: mx0b-0016f401.pphosted.com Received: from mx0a-0016f401.pphosted.com (HELO mx0b-0016f401.pphosted.com) (67.231.148.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 11 Sep 2019 23:27:56 +0000 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8BNPWnP001272 for ; Wed, 11 Sep 2019 16:27:53 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=5cmKp4cuvmQsezyszItS+LhOSlu5iAT6lb/xq0or/WM=; b=quQjTDl7IkztOlugoT04pRjBoKdJ7mWcgmOzFxC3nj0fxfmawHK4xTgCuZQPuicJOyPT /v/arTRHfY5eXdYwkn3ZirCGNRkMXCCYghe4L883J98DYYHiOVhpgcFSB2wvk5B65n5Y 7rQxUfOOyUse4HifZPOMGqon2pnrVcWo9NwI9CGpL6/8Ki8FPun5mdBvtyl8jWQBs4CY 5ARBR74Gc3xEG3AznQNbwkAcFbAhRAC55U5eSABC1S19OtcjQ4MIRs5cYhS9FkvQfIC5 dd7iHVM6Zq4GMPx4q2kxdjbTC6ez5jJycEpHcblc6V8j+kh89orMlQRnUoGJDrn+h/Ks ag== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2uxshkch73-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 11 Sep 2019 16:27:53 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 11 Sep 2019 16:27:52 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.59) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 11 Sep 2019 16:27:52 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nzJX30hXwAXKWa7rh5sxzrvT9dDLWHsJ6jRsq/wOAWTMxkCKkDuwGodmFWeT4PKND5aYh1puZ/YsFiIIsJBGhG/yMtfLavdY/WkTpY3kPX3SmrGsab2TKxpqts8edsXseyOmgvUCtfroblItg/Er1J9O/pm0iABqkWW1Vb6gsgS4YLEMzNRo/iMEMdWsK2hmz6X0KXe01Qzir41gYQiSzMXjhNKTgC21CXE9MW/xaSP8RSywXOka4nCnJniyBk+wrRVxdtt8J6sjdbnN8OR8KaT3Jdi7dASR9kP+/gq2ttuJd4egzxIahiWPC6jeVE/77wGJynVJyB64ZZANcQBdVQ== 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=5cmKp4cuvmQsezyszItS+LhOSlu5iAT6lb/xq0or/WM=; b=iQikNv2jqOMAqKPzRHylhviJ+BfFWXAbWEdfj5u41BHZ+QaezB30qWtNBxkx7HAxdGG4h1PU4yaR5rInduAJb7FyqYQYBK4YqH/shs7Kw5MeJ1VHI4HlNu1siqkezZx4mrDe+uFzfyDAjlLGVmWDcMGE2oeNuSoWhgmnUboLX17dHcB8Sg9ZUVVbxNHxws2NwHbrNOU7WbdU7mbViGG5Bxh9ta9nt8HgSX/vsVUYj1cDCBMk2AMBWHXXmJoudR9QDdv4Tx0WTrdG1Mi8FN5IjKMgIfLL5brEmb5JIEl4onjGCkJeYwzo5mDtYh0Wtey4bJEhfdeEaC1eYJVWNex3LQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5cmKp4cuvmQsezyszItS+LhOSlu5iAT6lb/xq0or/WM=; b=jN/1lRVRHPdmiVzEylX1vHyK3npr8TU0eSGOsO2xBijAVjHciZTfiBfswtdgN8G1qaX8CC6NfruKKAa/fCVbsKrnldM4BId5fh8bAW6b4Led+yE+10SL4oWVbnDLLEHzuSycNoTkpKxeghQ+0zsQxKUQW1T0tfkaQp0t+C54hBQ= Received: from BN6PR18MB1059.namprd18.prod.outlook.com (10.173.154.9) by BN6PR18MB1604.namprd18.prod.outlook.com (10.175.195.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.15; Wed, 11 Sep 2019 23:27:51 +0000 Received: from BN6PR18MB1059.namprd18.prod.outlook.com ([fe80::34e2:e1df:9921:b9c3]) by BN6PR18MB1059.namprd18.prod.outlook.com ([fe80::34e2:e1df:9921:b9c3%5]) with mapi id 15.20.2241.018; Wed, 11 Sep 2019 23:27:51 +0000 From: Gary Oblock To: GCC Development Subject: Questions about initialization data during LTO Date: Wed, 11 Sep 2019 23:27:00 -0000 Message-ID: x-ms-oob-tlc-oobclassifiers: OLM:8882; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: d1hiSFGFdCwAEAHyBj8Mui9QlRR/DYaTQkdqPF+duuUF6ddqDG+C9I1xBiTQCrPQf1l7tshOp6V+zguRV3Aagg== X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00082.txt.bz2 I'm trying to do a set of optimizations that drastically transform the layout of arrays of structures. For obvious reasons they will need to run at LTO time. I'm running into some difficulties comprehending how the initialization data is stored. Also, I'm seeing DECL_INITIALs being set to NULL and that is worrisome since it would throw a monkey wrench into what I'm doing. That is, because for my optimizations to work they will need to either disqualify an array with initialization data or transform said data. So, is the initialization data being hidden at LTO time? If not what's its format and how do I best manipulate it? Any insight into how to deal with these problem would be most helpful. These are some really interesting optimizations and will greatly speed up code that uses large arrays of structures. Thanks, Gary Oblock