From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by sourceware.org (Postfix) with ESMTPS id 6A2B6385841F for ; Thu, 11 Apr 2024 09:10:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6A2B6385841F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6A2B6385841F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712826612; cv=none; b=L2zt+NPas7JQTy5kQKz+VAc2F0isMegvBAi0ruB89oLecKTJZ+rIBYFE6Xr+8cdizTIWooLxg0jAQyzWD2bIgdw9o7Rm8NSF0w4/OAnRkHMWxLL3hjOn4DDGLMzrFRdZlsmKxQhf2qCraoTM/m0itaif3Wlodju2zxc+EsevnCQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712826612; c=relaxed/simple; bh=zAVv+/2p3X2IApiVq7hluc6gFyG5fBxzfg62P1+dxsI=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date: From:To:Subject:MIME-Version; b=pE/kfUoFgac1DJPYQmNYLB5zdjjIQOSbz694hkaMBuU2WON+x4wzAPYMJ3RoTSaKhoc9c4sQ6NVkc2ThH5XInjbI3bObF1HCTPscbgeWXrXCq99NK6fFjD9W2EcEyShfiAL5Dq4rAl1AA34sgymAR29TDMFm5CI//2UGFu2HyME= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from [10.168.5.241] (unknown [10.168.5.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 7ECCA20D9B for ; Thu, 11 Apr 2024 09:10:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1712826607; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=Nk8BmPyeDAO6lTlH2ALnoZedw9C6XOloB9smlLMQKIQ=; b=tZsiETd16vW0YRxZKtvivGw39+YazQkkPRwoqvRNtl+ezASjgQk5uMOzgIiyYuJrztohmF zjorQMEAkaAzUlxt+0lQ5s06JNweZO3qQlR28h0h/m56O05omIYDzOzcFUg66Mn3zeWzSM vL2bxcQbXyUg7HQuvS9Yos4m/BLueOU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1712826607; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=Nk8BmPyeDAO6lTlH2ALnoZedw9C6XOloB9smlLMQKIQ=; b=iusmdYQQ2Nyx5gXK6p6WgP2q8P14IWvDdCMs3dAoq9h/cokFfAIfFUn16C5cDRyvr+uGM1 J4yuvBORWhC14tDw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1712826606; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=Nk8BmPyeDAO6lTlH2ALnoZedw9C6XOloB9smlLMQKIQ=; b=FUN6I2NQ/Mo5+xheVlkTtuY5q0nEGjwDWmWG0M+trt27NET53TC2fitxZ7I+tgiYbJjnX8 GwalFiSRUSuybPTK/P3xql4myVvegLkFcm9adiJOUDOjy5V4sxSSxJG9NjpClSHlx0eB/X XVjPdXE4nr4sHjSdTiNOjekBA50mxDo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1712826606; h=from:from:reply-to:date:date:to:to:cc:mime-version:mime-version: content-type:content-type; bh=Nk8BmPyeDAO6lTlH2ALnoZedw9C6XOloB9smlLMQKIQ=; b=uJth31O3uSoLCVS7A0nGWqXiayE9PTJOn04mU4N2Eqp69ayOIZS6jgaSOAhEVAi1GATswZ vBTS5tFe+INo2+BQ== Date: Thu, 11 Apr 2024 11:10:06 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] tree-optimization/109596 - wrong debug stmt move by copyheader MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -0.43 X-Spam-Level: X-Spamd-Result: default: False [-0.43 / 50.00]; MISSING_MID(2.50)[]; BAYES_HAM(-1.68)[93.03%]; NEURAL_HAM_LONG(-0.96)[-0.956]; NEURAL_HAM_SHORT(-0.19)[-0.972]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ZERO(0.00)[0]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[] X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,MISSING_MID,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 List-Id: Message-ID: <20240411091006.uITEuNlG6_0BcuWqGf2BT1-ijUxx24IX7J-psUVcxVs@z> The following fixes an omission in r14-162-gcda246f8b421ba causing wrong-debug and a bunch of guality regressions. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. PR tree-optimization/109596 * tree-ssa-loop-ch.cc (ch_base::copy_headers): Propagate debug stmts to nonexit->dest rather than exit->dest. --- gcc/tree-ssa-loop-ch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree-ssa-loop-ch.cc b/gcc/tree-ssa-loop-ch.cc index 1f0033be4c4..b7ef485c4cc 100644 --- a/gcc/tree-ssa-loop-ch.cc +++ b/gcc/tree-ssa-loop-ch.cc @@ -957,7 +957,7 @@ ch_base::copy_headers (function *fun) edge entry = loop_preheader_edge (loop); - propagate_threaded_block_debug_into (exit->dest, entry->dest); + propagate_threaded_block_debug_into (nonexit->dest, entry->dest); if (!gimple_duplicate_seme_region (entry, exit, bbs, n_bbs, copied_bbs, true)) { -- 2.35.3