get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2232323/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2232323,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2232323/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260504111601.0BA7E4BAE7D1@sourceware.org/",
    "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": "<20260504111601.0BA7E4BAE7D1@sourceware.org>",
    "date": "2026-05-04T11:15:34",
    "name": "middle-end/125146 - fold_stmt fails to release SSA names",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "6a104ddc2ed82e0f46bd88ce5f3602a0cda191c5",
    "submitter": {
        "id": 4338,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/4338/?format=api",
        "name": "Richard Biener",
        "email": "rguenther@suse.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260504111601.0BA7E4BAE7D1@sourceware.org/mbox/",
    "series": [
        {
            "id": 502646,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502646/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502646",
            "date": "2026-05-04T11:15:34",
            "name": "middle-end/125146 - fold_stmt fails to release SSA names",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502646/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2232323/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2232323/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=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=H1Ap9ByX;\n\tdkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=wSfmx+vF;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.a=rsa-sha256 header.s=susede2_rsa header.b=H1Ap9ByX;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=wSfmx+vF;\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=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=H1Ap9ByX;\n\tdkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=wSfmx+vF;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.a=rsa-sha256 header.s=susede2_rsa header.b=H1Ap9ByX;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=wSfmx+vF",
            "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=suse.de",
            "sourceware.org; spf=pass smtp.mailfrom=suse.de",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=195.135.223.131",
            "smtp-out2.suse.de;\n\tnone"
        ],
        "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 4g8Jx00Cgxz1yJV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 04 May 2026 21:16:03 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 0BA7E4BAE7D1\n\tfor <incoming@patchwork.ozlabs.org>; Mon,  4 May 2026 11:16:01 +0000 (GMT)",
            "from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131])\n by sourceware.org (Postfix) with ESMTPS id 6C18B4BAE7E2\n for <gcc-patches@gcc.gnu.org>; Mon,  4 May 2026 11:15:35 +0000 (GMT)",
            "from murzim.nue2.suse.org (unknown [10.168.4.243])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id 693AF5BDCC\n for <gcc-patches@gcc.gnu.org>; Mon,  4 May 2026 11:15:34 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 0BA7E4BAE7D1",
            "OpenDKIM Filter v2.11.0 sourceware.org 6C18B4BAE7E2"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 6C18B4BAE7E2",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 6C18B4BAE7E2",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777893335; cv=none;\n b=QUQUafRMUk1UYz6ctAsdA5Jz8ZPCiAvb7KkY6WK+Sav3MkL+LDhVp48KdFSLq7IHlScqk6Zxk9EojuHP7OvWqFzoCxNbes+mKdmt6goeouYL0JveKNpp6pxNww2aCWEG3QXzqyt7cvU/PAtjTCbOOd+UVQB4wx2knsMlTY1nTZQ=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777893335; c=relaxed/simple;\n bh=869oApFZ7U3NnlDYqv0PZg4uUmISIomzlQxmlcqHNrM=;\n h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date:\n From:To:Subject:MIME-Version;\n b=ooL4IDr8Mh5gOk4nnAa+1o3OBT5Bmh/SKFD5CsZ/OStBa18BhbBuyMboV5fCPFAROGzR8H0Cbz0wfMX6N9NEwZ6GtmcMTakFqU0hbCu+qPTgjzZuskUPGWk0a3a/nT0ce6Cc+Hu68GbUEwYthLN59KrZ0yJLVAIf/BttRG04Riw=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1777893334;\n h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version:\n content-type:content-type; bh=heRtPWN6thUTlJOGuXwnNGfJAsHxoczYVO66mDqSwMs=;\n b=H1Ap9ByXyKvB7P6M4bkpBKc3zy+9nKBf/2U71MTQ3FV+YNXV7OMP4aGB2+msFdbOjctWwN\n bqJqWpLO6aZpCbA8PmcHZCC9UPevqoPFdiledBnaUNIGK+D/cc59jAcNCKz2fltgdIsWLI\n TSo/2gBx6th+LWjv6rYaRCONyZmIPog=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1777893334;\n h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version:\n content-type:content-type; bh=heRtPWN6thUTlJOGuXwnNGfJAsHxoczYVO66mDqSwMs=;\n b=wSfmx+vFvoGaLl+ivb0k4ow7Y/WuFAbXuVpI79BccIZWo1A0eV0WcZIyGSMO3uL28nYv5M\n 0ofggvBExoNwb1BA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1777893334;\n h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version:\n content-type:content-type; bh=heRtPWN6thUTlJOGuXwnNGfJAsHxoczYVO66mDqSwMs=;\n b=H1Ap9ByXyKvB7P6M4bkpBKc3zy+9nKBf/2U71MTQ3FV+YNXV7OMP4aGB2+msFdbOjctWwN\n bqJqWpLO6aZpCbA8PmcHZCC9UPevqoPFdiledBnaUNIGK+D/cc59jAcNCKz2fltgdIsWLI\n TSo/2gBx6th+LWjv6rYaRCONyZmIPog=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1777893334;\n h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version:\n content-type:content-type; bh=heRtPWN6thUTlJOGuXwnNGfJAsHxoczYVO66mDqSwMs=;\n b=wSfmx+vFvoGaLl+ivb0k4ow7Y/WuFAbXuVpI79BccIZWo1A0eV0WcZIyGSMO3uL28nYv5M\n 0ofggvBExoNwb1BA=="
        ],
        "Date": "Mon, 4 May 2026 13:15:34 +0200 (CEST)",
        "From": "Richard Biener <rguenther@suse.de>",
        "To": "gcc-patches@gcc.gnu.org",
        "Subject": "[PATCH] middle-end/125146 - fold_stmt fails to release SSA names",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=US-ASCII",
        "X-Spamd-Result": "default: False [-1.80 / 50.00]; BAYES_HAM(-3.00)[99.99%];\n MISSING_MID(2.50)[]; NEURAL_HAM_LONG(-1.00)[-0.998];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n ARC_NA(0.00)[];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n RCPT_COUNT_ONE(0.00)[1]; FUZZY_RATELIMITED(0.00)[rspamd.com];\n TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[];\n MISSING_XM_UA(0.00)[]; FROM_EQ_ENVFROM(0.00)[];\n MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[];\n RCVD_COUNT_ZERO(0.00)[0];\n DBL_BLOCKED_OPENRESOLVER(0.00)[murzim.nue2.suse.org:helo]",
        "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",
        "Message-Id": "<20260504111601.0BA7E4BAE7D1@sourceware.org>"
    },
    "content": "When match-and-simplify simplification fails we have to release\neventually pushed stmts.\n\nBootstrapped and tested on x86_64-unknown-linux-gnu, pushed.\n\n\tPR middle-end/125146\n\t* gimple-fold.cc (fold_stmt_1): Discard stmts in seq\n\tafter failed gimple_simplify as well.\n---\n gcc/gimple-fold.cc | 14 ++++++--------\n 1 file changed, 6 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/gcc/gimple-fold.cc b/gcc/gimple-fold.cc\nindex b53478dbb3d..8f9119f2469 100644\n--- a/gcc/gimple-fold.cc\n+++ b/gcc/gimple-fold.cc\n@@ -6885,14 +6885,12 @@ fold_stmt_1 (gimple_stmt_iterator *gsi, bool inplace, tree (*valueize) (tree),\n       gimple_seq seq = NULL;\n       gimple_match_op res_op;\n       if (gimple_simplify (stmt, &res_op, inplace ? NULL : &seq,\n-\t\t\t   valueize, valueize))\n-\t{\n-\t  if (replace_stmt_with_simplification (gsi, &res_op, &seq, inplace,\n-\t\t\t\t\t\tdce_worklist))\n-\t    changed = true;\n-\t  else\n-\t    gimple_seq_discard (seq);\n-\t}\n+\t\t\t   valueize, valueize)\n+\t  && replace_stmt_with_simplification (gsi, &res_op, &seq, inplace,\n+\t\t\t\t\t       dce_worklist))\n+\tchanged = true;\n+      else\n+\tgimple_seq_discard (seq);\n     }\n \n   stmt = gsi_stmt (*gsi);\n",
    "prefixes": []
}