From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by sourceware.org (Postfix) with ESMTPS id 9B7503858D28 for ; Fri, 6 Jan 2023 08:05:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9B7503858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-xb34.google.com with SMTP id p188so1102472yba.5 for ; Fri, 06 Jan 2023 00:05:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iL5iQuPAcRklW6mcmL9G4cg1e7YV9B4yqWVh7WRJ1bY=; b=FnNQNYmnH45P8khycOvItjGq6FbAjb62BdM4/OzrKRIXlYAIB+gNOo6KxZf+Gh+jKW khi+2t3I2F6nsoFeaWytr98NFFNqkZMUyLwHWl/zfBF5hFoheI+1UnXn3Qm7nlDsRN9/ 5pG0Og4L7hZWR4DtjICBEIJFzNZdhECFIm8/7lR04AHj1mNho6t9Fv4jmIAdGl5QldjN qzZq8B38OkhvrYGEbsl4gdWfm4FAyjhVJN9CXE7QfZXx3sPdTZqpMNpvCEZfYN1Q6CKm lxcjIDpsuxPn2wYw5O4zecQGVivOl55E+lEqPRhx3Om1Xyh+D33943LNs3KcMGY5V2zZ wmHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iL5iQuPAcRklW6mcmL9G4cg1e7YV9B4yqWVh7WRJ1bY=; b=P2PLswIGACclCMqXtFMlnrLEfEVWtozBQGVejY8s3CfF+vP/3UxpXK+G9+k7BDSiAx mjuAFuD2zRgQNZEvPluRxWxHR5SJdudvYX2jkgEEwkbd7jDNWrkX6h1QNkO+3fu3+uUm YbfX35wfwlFIxFQk4esGbMuZX3AC5FEck0aS7tkYXnPliw55fLbo3Zhi4LP0IHJTEyxR R9QeUGW4nd2TeEzDnYtoOes81kqehtmRFW0tIQY2pnqtlWlouxB33dNustTTWJxY2UoE ZgcB038+zWeN3pPZyaIIpOjkmHnlDCUssQGDLCsJrk3esj/Pwr0oshNSY/TKlXWeeBQI zSnw== X-Gm-Message-State: AFqh2ko5lhZ1MilodCN3aMkUy7+5uZ/4F0lvCOwYXqFHFxwoVBM/SR3K Rfo8lkL9JpbmiFvQS3GanpuFbl2jfr4W521jmBM= X-Google-Smtp-Source: AMrXdXuGgR7QWYKtIoFhrO6TkwVMEKWXhWS4pcDpxr9cLZDEHe5uAkajHnhJTlfPyvrDWWbT+EXohxi0vw7YC4mTlKs= X-Received: by 2002:a25:b203:0:b0:7b6:7592:f156 with SMTP id i3-20020a25b203000000b007b67592f156mr519548ybj.539.1672992336014; Fri, 06 Jan 2023 00:05:36 -0800 (PST) MIME-Version: 1.0 References: <04a89dbf-c2a3-5dcb-8949-77569a1ad169.ref@yahoo.co.jp> <04a89dbf-c2a3-5dcb-8949-77569a1ad169@yahoo.co.jp> In-Reply-To: From: Max Filippov Date: Fri, 6 Jan 2023 00:05:24 -0800 Message-ID: Subject: Re: [PATCH] xtensa: Optimize stack frame adjustment more To: "Takayuki 'January June' Suwa" Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, Jan 5, 2023 at 10:57 PM Takayuki 'January June' Suwa wrote: > By using the helper function, it makes stack frame adjustment logic > simplified and instruction count less in some cases. I've built a couple linux configurations with and without this change and I observe consistent code size growth, e.g.: iss_defconfig without the change: text data bss dec hex filename 3014768 164016 115108 3293892 3242c4 vmlinux iss_defconfig with the change: text data bss dec hex filename 3015296 164008 115108 3294412 3244cc vmlinux virt_defconfig without the change: text data bss dec hex filename 5498881 2254360 291768 8045009 7ac1d1 vmlinux virt_defconfig with the change: text data bss dec hex filename 5500389 2254360 291768 8046517 7ac7b5 vmlinux generic_kc705_defconfig without the change: text data bss dec hex filename 7062530 635340 286400 7984270 79d48e vmlinux generic_kc705_defconfig with the change: text data bss dec hex filename 7064078 635340 286400 7985818 79da9a vmlinux -- Thanks. -- Max