Message ID | 0ac60d36-8412-b8fe-44e3-0be5836717df@gmail.com |
---|---|
State | Repeat Merge |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1690880wrs; Mon, 17 Oct 2022 16:39:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6RzYG40Y4KnaZkyAzqEYBGCEg6BQuEZlAXgmarHsbLjSs7N3wDgYKm0uDs+hypVNCreL0b X-Received: by 2002:a05:6402:36b:b0:458:5ac2:8d56 with SMTP id s11-20020a056402036b00b004585ac28d56mr134688edw.25.1666049940944; Mon, 17 Oct 2022 16:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666049940; cv=none; d=google.com; s=arc-20160816; b=a3cEdjIfsCCVDF513ZE61UQ6AQPigcdvpYw6SM8aoEAyLlNLUNW4zf7uPiw4zkNxm3 3+1WHlWlBuAcBb2f3J/jUY4RCojrcpEnNRi8x+J9GvEOTRcVZ3HRZRJXW3j+MQsj1jUC SJSgeOh+l3wHJ2R/DFbPE0+9Oej3e+/zS7k4EOGH5dKtBt/8pLHPjkT9Jios4c9Q2jID vqLpmoNzmyEFR2So9sEMvfYlfbeKWnXwmA5a42CdYfGKYDuebhYZBC8iwNT1jWl4dzHp b+6xLODxlgYSJk9+XCVGaLwb+1uJppbY+HVb9k9xfWoHZnIdsycvJZlW/P08Z5BlxhEm lQjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:to :content-language:user-agent:mime-version:date:message-id :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=1Xl8ivJAQ5U7Lo/UB66AoUyIBg83/D7bzq+cfJOPWdo=; b=t40eDyOnxZH4x6OdWye+r9maNAfRNIbP4Lumz5BDp8iYvnqCAbru4esl7ZsAeP2F+T M2k9wiWA9bcnkNFSb81teqqBHbzgEordLBsZDBnYIslOmnKoqpSvatAGlbpTqK7dqDTm YXs4s0GV0BnHtw+h7/XeRVwmnFTDI17cGjZBKlfxeCvRmp9hixk7Wo+j+9SqMq6W68mb Okyqg2FpFLeNYUhiPm7U/AC4Lq7L4cfhqgLqqq7BohpxaSrxKKYcYtEncOsKvaZuZoSz m0v7z0BaNc5rdRM+mAKw4BU2gfJk1bVE6Urnm9G7OlDoirK8NCxMppK2lxf0qYGRzC33 qQlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=B70BL4dk; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ti5-20020a170907c20500b007307fa2da78si7881799ejc.450.2022.10.17.16.39.00 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 16:39:00 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=B70BL4dk; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E5685385800B for <ouuuleilei@gmail.com>; Mon, 17 Oct 2022 23:38:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5685385800B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666049939; bh=1Xl8ivJAQ5U7Lo/UB66AoUyIBg83/D7bzq+cfJOPWdo=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=B70BL4dkUBooTkJpJCOzV3AypVCpxRlu+L8lFtx4ZaMOLvQVpc+5ebVlDZ3fFT/Cs r2oClccsSRT4r3+aHAc5wVuztR+lWB3PwszUJ3X34UgocJXA786BatCDlvsrt3kdWq QGrqs+Oee7elhlJMqvz/hWMxJpSZfkReTSOlhFeU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 7C9583858C50 for <gcc-patches@gcc.gnu.org>; Mon, 17 Oct 2022 23:38:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7C9583858C50 Received: by mail-pl1-x631.google.com with SMTP id c24so12200844pls.9 for <gcc-patches@gcc.gnu.org>; Mon, 17 Oct 2022 16:38:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1Xl8ivJAQ5U7Lo/UB66AoUyIBg83/D7bzq+cfJOPWdo=; b=OOtmv07h9UFk8vdFr1kb1KFnEYaEYrMY/P/IKM8JjIoDQtpZfZcQDRsiDrqc77trto jGn8nVzoGEoQlc00dIxIJ4KxDagrNbyvx6DgurzZupfnyHAqZkpfGn+NvKFuM4Z2xiZ9 ZPNgT1yc8p2pLd/jHBgyn6RhlUM5CA/lg2e+Utu3tvOV9zC9OzEfIIH7LobiUfSRphMi eI8ZUQwURErQ/PC6FP/xBrEt+uSemY4lYGBrr1ItgYacyEztxm9KcHmaMf+Xm8ANw51W +ymUsDJ7ZcJbotPUeBkYOos+CJtPMh+WcQuB7TzRsgOSKJFO7A9EuKBU270FtVjvOWVa qcnQ== X-Gm-Message-State: ACrzQf1gA28iAFrsOHtEdK2nlb+b3RuU8FEFYi1DVjM+b2PPHtvZLm0U P7kmzxOTYtMDbDIES+9Nx1FoaUG0GJc= X-Received: by 2002:a17:90a:bd01:b0:205:fa9c:1cfc with SMTP id y1-20020a17090abd0100b00205fa9c1cfcmr36338558pjr.116.1666049893044; Mon, 17 Oct 2022 16:38:13 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id w29-20020aa7955d000000b00562657a7b11sm7737638pfq.8.2022.10.17.16.38.12 for <gcc-patches@gcc.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Oct 2022 16:38:12 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------q5fEllndjJaz7sjQC9kXVPgO" Message-ID: <0ac60d36-8412-b8fe-44e3-0be5836717df@gmail.com> Date: Mon, 17 Oct 2022 17:38:11 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Content-Language: en-US To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> Subject: [committed] Enable REE for H8 X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Jeff Law via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Jeff Law <jeffreyalaw@gmail.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746979982637886781?= X-GMAIL-MSGID: =?utf-8?q?1746979982637886781?= |
Series |
[committed] Enable REE for H8
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Jeff Law
Oct. 17, 2022, 11:38 p.m. UTC
I was looking at H8 assembly code recently and noticed we had unnecessary extensions. As it turns out we never enabled redundant extension elimination on the H8. This patch fixes that oversight (and was the trigger for the failure fixed my the prior patch). Regression tested along with a bit of other in-progress work. Committing to the trunk. Jeff commit 566c5f1aaae120d2283103e68ecf1c1a83dd4459 Author: Jeff Law <jeffreyalaw@gmail.com> Date: Mon Oct 17 19:28:00 2022 -0400 Enable REE for H8 I was looking at H8 assembly code recently and noticed we had unnecessary extensions. As it turns out we never enabled redundant extension elimination on the H8. This patch fixes that oversight (and was the trigger for the failure fixed my the prior patch). gcc/common * common/config/h8300/h8300-common.cc (h8300_option_optimization_table): Enable redundant extension elimination at -O2 and above.
diff --git a/gcc/common/config/h8300/h8300-common.cc b/gcc/common/config/h8300/h8300-common.cc index bfbda22006b..22e2cfcb7b2 100644 --- a/gcc/common/config/h8300/h8300-common.cc +++ b/gcc/common/config/h8300/h8300-common.cc @@ -32,6 +32,8 @@ static const struct default_options h8300_option_optimization_table[] = and/or variable-cycle branches where (cycle count taken != cycle count not taken). */ { OPT_LEVELS_ALL, OPT_freorder_blocks, NULL, 0 }, + /* Enable redundant extension instructions removal at -O2 and higher. */ + { OPT_LEVELS_2_PLUS, OPT_free, NULL, 1 }, { OPT_LEVELS_NONE, 0, NULL, 0 } };