Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2230355/?format=api
{ "id": 2230355, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230355/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/7dfea11a-e6a8-44a8-90f1-392e29759921@redhat.com/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<7dfea11a-e6a8-44a8-90f1-392e29759921@redhat.com>", "date": "2026-04-29T16:11:09", "name": "[pushed,LRA] : Fix a bug in updating live info in rematerialization", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "dd26815e7d3e4663154678788f2b35f3ec7a1dab", "submitter": { "id": 4455, "url": "http://patchwork.ozlabs.org/api/1.1/people/4455/?format=api", "name": "Vladimir Makarov", "email": "vmakarov@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/7dfea11a-e6a8-44a8-90f1-392e29759921@redhat.com/mbox/", "series": [ { "id": 502103, "url": "http://patchwork.ozlabs.org/api/1.1/series/502103/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502103", "date": "2026-04-29T16:11:09", "name": "[pushed,LRA] : Fix a bug in updating live info in rematerialization", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502103/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2230355/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2230355/checks/", "tags": {}, "headers": { "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=TgcfK895;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=TgcfK895", "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com", "sourceware.org; spf=pass smtp.mailfrom=redhat.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.129.124" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5MkZ5kGBz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 02:11:49 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id DAD734BAE7E6\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 16:11:46 +0000 (GMT)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 969734BB3BE6\n for <gcc-patches@gcc.gnu.org>; Wed, 29 Apr 2026 16:11:18 +0000 (GMT)", "from mail-qk1-f198.google.com (mail-qk1-f198.google.com\n [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-679-YzGXlgchOkeuz9vcUMl5Lw-1; Wed, 29 Apr 2026 12:11:15 -0400", "by mail-qk1-f198.google.com with SMTP id\n af79cd13be357-8cd722c1a69so2346525885a.0\n for <gcc-patches@gcc.gnu.org>; Wed, 29 Apr 2026 09:11:15 -0700 (PDT)", "from [192.168.0.111] (192-0-141-76.cpe.teksavvy.com. [192.0.141.76])\n by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8f94005245csm237355785a.41.2026.04.29.09.11.11\n for <gcc-patches@gcc.gnu.org>\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Wed, 29 Apr 2026 09:11:13 -0700 (PDT)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org DAD734BAE7E6", "OpenDKIM Filter v2.11.0 sourceware.org 969734BB3BE6" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 969734BB3BE6", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 969734BB3BE6", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777479078; cv=none;\n b=Da5Ia5yTyv5JIiVJAu2Fg+yWh6GE0F2UkJDV87oWfML5EPdd+v5XX2CpdO69yvbVwFIBLOnO1kpbrJK34P1bHqR4HxJXX/KCkBu8DkWvb+RxQbr8jrAQnduirQM0ilwqGSq33Ncq3NEQcn6nIZ/vmEzjNAFecKxbrJxYYqViapg=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777479078; c=relaxed/simple;\n bh=cDJJOMzvfGCKqgQ1YRZmkHF1m/y7aevcbKoGxKT3SlU=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To;\n b=gab2Vx0rCp6zrJsxZA+NnzC2lM3LNerI4oJK7VeM7cwqHXtkxJYY9SeyzsFKdDaw6fwTwEeQwultk2e0uHSolmKKBrkh7BK1E0LKb1ZK6pc40xCuJovsyTl7Ft9OAQMzWtKV+PB4CmlpzAa5nBh/FiJxTv5cboYm79ej/gbMrQM=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1777479078;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type;\n bh=mE/+pHMNZty1+VIZcPweS1sgL5FWCiJ5tszK4VkID6c=;\n b=TgcfK895O3GUIl6cvTl555g5QJdS3RLDoBQAQiXlG16AsEsdmz4AGbA7M3xeNd1Gwcl9iB\n 1ni3QwwBXfvdqAydjh9HWkIYGaTY21UdkvngJY6SfXYSHO/FP1t8SkTp4HtQj2a4+2PP0l\n XGbVWKpinHjbty7WILS/IfFc37zmU64=", "X-MC-Unique": "YzGXlgchOkeuz9vcUMl5Lw-1", "X-Mimecast-MFC-AGG-ID": "YzGXlgchOkeuz9vcUMl5Lw_1777479075", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777479075; x=1778083875;\n h=to:subject:from:content-language:user-agent:mime-version:date\n :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=lNOY2WbUKlGsyCvLvSQnVpf2E+WfVeX91eVWURvT8X4=;\n b=MCzPeQuoX+EcKzImZB3aRYPPjJiV3msTHYDSosJwGUqEPPJq7LIrM0U++4Jd2bQ5ap\n TT7brzLsTrwPfkDnt94KrJljNSbOzMb5CgpP9NFRAcZIDAj+eMIzfBdF05X246PxTbSP\n aLNxYVbOArwQEwr0sIkl464mbBMWYoieTgfPOvYQV+WHJsw8koDJ/cavmTDqk3L9MmXQ\n m/g2VGFOqRIKdUCMzT3x8rJXRr7bJG68+CHmryJpBVR1v120bqt8kr9f3tEha7gtzRd5\n 15nQnMEXyi56Bnonb/ZGg/ZEQk+/m+TSCdoJoHtUbu6l8ynS8wyCNeA9bWau33+R7EHJ\n raWw==", "X-Gm-Message-State": "AOJu0YyigAf9b1PBk2lRF5y4ppLtfmyRhw2JBcXfDNu8tA+ElyInWV8S\n lRv7Uw4NPrE4NU7r19NSHb3tGT5ptW/NMWEGuEjuQU6AVlEczxkFXtHW1gjr8ydkABBOtp00HP1\n /mqgojaMqV2I+kO9hapSrOwkPJImDrXF1qKqSXE89x6cL4LxmCISksPwdHrLR+eXJOw3CrY1h1X\n StVn4ZyVB+byFXd+SDeEIDI8B6+ml8Gd28e/7g0YGm3cw=", "X-Gm-Gg": "AeBDietNoxz6h/Yl4nKaGIijtG5lnYzjhSWLushHmt1j4zGs8stoE/UiXvpV352rR+2\n DAqAvfs4IBmZ5AQs5ccvi5wfd4bE8bTRYbDKLy4/Jn/Pw0y/t52NnVO67UDwt0sRyM2GtOxa1Du\n DaXc9q06xqkTGbl4EofwK4WcV8NA/A1lPnUOTLLMpPBT4HpsoMBff3fltQjw9q0x7h+70EXkDUx\n 72EdOLTeJy7XicgbYzDGtDDb6Bh+R59NhbWmlAGpvPvA7Z7d1NGX1L4KQ0Etv5q1KAVMJ5rfKw3\n tvpZvktX8QHH4iJn4HBZvNy2LUfNaKDkoeKcVcCq1DcONSYFLvXk3yhI1fikqaIJ3Ec0gohzsmz\n dDC2QLuBPHUJgckuhns4DumV5/3+IqGfOpZc20LuaeFO9m6jgBCZkY12WmVS8/w6Ikg==", "X-Received": [ "by 2002:a05:620a:44d1:b0:8cf:d70d:cf0e with SMTP id\n af79cd13be357-8f8f6777de4mr622654285a.47.1777479074836;\n Wed, 29 Apr 2026 09:11:14 -0700 (PDT)", "by 2002:a05:620a:44d1:b0:8cf:d70d:cf0e with SMTP id\n af79cd13be357-8f8f6777de4mr622646885a.47.1777479074240;\n Wed, 29 Apr 2026 09:11:14 -0700 (PDT)" ], "Message-ID": "<7dfea11a-e6a8-44a8-90f1-392e29759921@redhat.com>", "Date": "Wed, 29 Apr 2026 12:11:09 -0400", "MIME-Version": "1.0", "User-Agent": "Mozilla Thunderbird", "From": "Vladimir Makarov <vmakarov@redhat.com>", "Subject": "[pushed][LRA]: Fix a bug in updating live info in rematerialization", "To": "\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>", "X-Mimecast-Spam-Score": "0", "X-Mimecast-MFC-PROC-ID": "HgJ-XZZFFjEDvrx-U-4oFbPLKBmAhWrtt4OZPKfJbq8_1777479075", "X-Mimecast-Originator": "redhat.com", "Content-Type": "multipart/mixed; boundary=\"------------nVe7fWw05k0qq1mGhz46MNoE\"", "Content-Language": "en-US", "X-BeenThere": "gcc-patches@gcc.gnu.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <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>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "It is a fix for wrong hard reg live calculation for multi-reg pseudos in \nlra rematerialization.\n\nThe patch was successfully bootstrapped and tested on x86-64, aarch64, \nand ppc64le.", "diff": "commit 002928eb18c190e699fb94cd383c51dea7a86462\nAuthor: Vladimir N. Makarov <vmakarov@redhat.com>\nDate: Wed Apr 29 09:37:11 2026 -0400\n\n [LRA]: Fix a bug in updating live info in rematerialization\n \n LRA rematerialization ignores that a pseudo can require more one hard reg\n when updating live hard reg info. This can result in wrong\n rematerialization. The patch fixes this.\n \n gcc/ChangeLog:\n \n * lra-remat.cc (do_remat): Use the right nregs for pseudo hard reg\n when updating live hard regs.\n\ndiff --git a/gcc/lra-remat.cc b/gcc/lra-remat.cc\nindex c4da3f75e59..20d9f47d2e9 100644\n--- a/gcc/lra-remat.cc\n+++ b/gcc/lra-remat.cc\n@@ -1073,11 +1073,17 @@ do_remat (void)\n CLEAR_HARD_REG_SET (live_hard_regs);\n EXECUTE_IF_SET_IN_BITMAP (df_get_live_in (bb), 0, regno, bi)\n \t{\n-\t int hard_regno = regno < FIRST_PSEUDO_REGISTER\n-\t\t\t ? regno\n-\t\t\t : reg_renumber[regno];\n-\t if (hard_regno >= 0)\n-\t SET_HARD_REG_BIT (live_hard_regs, hard_regno);\n+\t int nregs = 1;\n+\t int hard_regno = regno;\n+\t if (regno >= FIRST_PSEUDO_REGISTER)\n+\t {\n+\t hard_regno = reg_renumber[regno];\n+\t if (hard_regno < 0)\n+\t\tcontinue;\n+\t nregs = hard_regno_nregs (hard_regno, PSEUDO_REGNO_MODE (regno));\n+\t }\n+\t for (int i = 0; i < nregs; i++)\n+\t SET_HARD_REG_BIT (live_hard_regs, hard_regno + i);\n \t}\n bitmap_and (avail_cands, &get_remat_bb_data (bb)->avin_cands,\n \t\t &get_remat_bb_data (bb)->livein_cands);\n", "prefixes": [ "pushed", "LRA" ] }