From patchwork Fri Oct 27 19:14:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 159136 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp828853vqb; Fri, 27 Oct 2023 12:14:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTmyBmUWbLIsOmWdr8dSvxkui+F1WU/myypk4CPsF+2wITP2BMoUBE+2P7z/Ru//LxbJnM X-Received: by 2002:a67:c006:0:b0:457:ddde:ba45 with SMTP id v6-20020a67c006000000b00457dddeba45mr3775252vsi.14.1698434070004; Fri, 27 Oct 2023 12:14:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698434069; cv=pass; d=google.com; s=arc-20160816; b=iI+oDzRIZO1+yt/Mu9tFSGd15YLtEHncPwt4nWmrHqAuB8ZsH1wyYBjzHuPWWPGVGT +Nn6RHU0Jfyrb/MnmQExHuBNEVGOlCofV0Gm+TXG1acdky6e9Vd4tbuORJFpAdPwzUwK 95QmJ2ZfLUkrat0zNII9sJEccuqHrpQ2arZ3zb1XI42XJxXC0St0qxAoS6pyGUm67xN3 E+eYXmEAKO7aNcxgpZDwV4G8CyfFpFCivPKnXvxuhkLZAb76vGYD/yBt0V1XgILeOOPC FMP1YqIOIJJYq5Eg883fo/GOrYw0osYwhkzrVftVcbYW9ef9hd1ddl5yjUMd45WoB5K1 rEGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-language:to:subject :from:user-agent:mime-version:date:message-id:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=PStVRkZLzAAbwTP+LYX3bNiJqlTMX4g75KzgMDo574E=; fh=XNn3asQvIblazGK92GBt13dVv+YmGV3pBS0JC29ZQco=; b=n2h6ynJfek7D0XfVslMlWO+QLn4F48e/lCHNP3uoQtK1BMrzGjaJlZglBeoX8Z8sCJ TZN1P0ZsWzvddkPkP2Fu4gPqSxh1aSsmzFh4a3PylyOBbC9cTkl58cZoJQjDiPP4dNH5 tFWfHloiMGBF1eBMIexMFxlkUjsKEY0OSVV4dcVo0RNPdC/l282nV1d/OqjuQ90MjL54 VJweLoJLVCZiRIwQU+k9N4uYOf6+jL7e56HlmjWg1rCA8UEZaRynqPGt6+HstNM1SqgS T8xv39bgh+drW4R7/9P+xtiVX2F7XpxGAwEYHZo88vbrxoRflwo+oxjYKX+ci4TO/CMb V8xQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZMLFqm5D; arc=pass (i=1); 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=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d21-20020a05620a241500b0076cb6c9e0a6si1002152qkn.336.2023.10.27.12.14.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 12:14:29 -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=@redhat.com header.s=mimecast20190719 header.b=ZMLFqm5D; arc=pass (i=1); 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=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AFE91385C6C4 for ; Fri, 27 Oct 2023 19:14:29 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 67624385C6C4 for ; Fri, 27 Oct 2023 19:14:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 67624385C6C4 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 67624385C6C4 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698434047; cv=none; b=NViiAS4GJh0m7GgfivUjkq8psXK+q4o6eVBt5Et9ehdGXV0iDbC4+nzVYJFeFuY8DK6BNiXwVA8lB9Sq8gMmLGa2lHU0bUk4sBHXDGYT1ID/Jwa1fz1tC4uIzYufvicG6J3ocK1AnmmJOf7TzQiq0vVN0E0IIP+bGU7SqHau+yk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698434047; c=relaxed/simple; bh=A908EG5kJ6jgzIk81hXjETT6+LjCc1RtNwVwpIa7PjQ=; h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To; b=i9ZyilfYAL0gWMWzuv31GTWIFESvRbCEsC0RgxEG/XZvwyBfXQQqmIobTUq0xMmKI5tfmVYPV080CVDcb5YM/163DL/Lu8bDDWaBO9UukyXSlfgRFfJeqTcmhQY17nfc62AdNRxRHYKwvALHhVz1NpVybYrNTqRaIVStyvB3LKE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698434046; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=PStVRkZLzAAbwTP+LYX3bNiJqlTMX4g75KzgMDo574E=; b=ZMLFqm5DU0siA3VnPCs4wGQImVkkb1hbg1ZdfVCtbxlEthFaU48X3jCx4G44s3Stmr1uGS 4ZynV58r6G1tIQL4t00D5Ik4oG8ABoOXTK1VeSOpB0AUA3siDkqMZK1JL4Uo19UbxClWWk 2jlqK0a3Ig6kFRBBOlVl+gAQT8bVqak= Received: from mail-oa1-f69.google.com (mail-oa1-f69.google.com [209.85.160.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-688-GQQ_mDSqOyyH94xT5OQGqg-1; Fri, 27 Oct 2023 15:14:03 -0400 X-MC-Unique: GQQ_mDSqOyyH94xT5OQGqg-1 Received: by mail-oa1-f69.google.com with SMTP id 586e51a60fabf-1e9d9455085so2790473fac.2 for ; Fri, 27 Oct 2023 12:14:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698434042; x=1699038842; h=to:subject:from:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+XMzXygGCA8Kpx2LeppejU2PKibdB8xAU8d6GvWeVqE=; b=tk2HqjZ2cOl373aAJn3dhgsHXlF7fars4iayNaVjtTuyJ+f5imTMqgUnRyCDFIK+N9 o19HmjT2NtaTV/qyY2vGZ5AuJPTja5UXR5kO88v5iklGQfIutqiuBP45u/j1fMJlpqZ5 y0f0Zk2XVtEqdeGXypNLnRlfJWH+EswPvEuKpPU81VtyOgmR14HLdlB+kGzID3WO2Guz 3i7kvqYihXj0TPL+n7w0O7A2YQ6aqQlneZNFHqA6+ATXdlVXfdlv3d4e8N0Wk2fEXj5e dO7/NtSkOzAqH4Zq1+3RcLCJmkCf60hTTqCbvlc2O+S+6B+ws/73lGnnx5bdcYcAdikr 5POQ== X-Gm-Message-State: AOJu0Yz9aszLv6K+hNwd+VOB10QWWr2Q+uzzcIEcLh+WvGT29s+i9VEc 842ycaDDF0sox0Dg0EnQxcNxz3gKrRkew+Feq0srru+wWq/Yq6jGH0ZxDQswjORXrDLBqSGw8A0 Oufl8rGXE+F7yZVT5ImtjnWksQ56JLCy0G1I/FEybugrU/YYUjaBGkzywWSxMZ3rtDr8icQhXdh oCmA== X-Received: by 2002:a05:6871:630d:b0:1e9:a5f2:aab2 with SMTP id rg13-20020a056871630d00b001e9a5f2aab2mr5074796oab.37.1698434042722; Fri, 27 Oct 2023 12:14:02 -0700 (PDT) X-Received: by 2002:a05:6871:630d:b0:1e9:a5f2:aab2 with SMTP id rg13-20020a056871630d00b001e9a5f2aab2mr5074778oab.37.1698434042302; Fri, 27 Oct 2023 12:14:02 -0700 (PDT) Received: from [192.168.1.88] (23-233-12-249.cpe.pppoe.ca. [23.233.12.249]) by smtp.gmail.com with ESMTPSA id j15-20020a05622a038f00b00410a9dd3d88sm828671qtx.68.2023.10.27.12.14.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Oct 2023 12:14:01 -0700 (PDT) Message-ID: <7597898c-c7f8-5208-817d-e42fde07fbe8@redhat.com> Date: Fri, 27 Oct 2023 15:14:00 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 From: Vladimir Makarov Subject: [pushed] [RA]: Fixing i686 bootstrap failure because of pushing the equivalence patch To: "gcc-patches@gcc.gnu.org" X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780937203374739549 X-GMAIL-MSGID: 1780937203374739549 The following patch fixes i686 bootstrap failure because of my recent patch: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112107 commit 7361b49d7fa3624cb3f1f825a22607d9d31986e5 Author: Vladimir N. Makarov Date: Fri Oct 27 14:50:40 2023 -0400 [RA]: Fixing i686 bootstrap failure because of pushing the equivalence patch GCC with my recent patch improving cost calculation for pseudos with equivalence may generate different code with and without debug info and as the result i686 bootstrap fails on i686. The patch fixes this bug. gcc/ChangeLog: PR rtl-optimization/112107 * ira-costs.cc: (calculate_equiv_gains): Use NONDEBUG_INSN_P instead of INSN_P. diff --git a/gcc/ira-costs.cc b/gcc/ira-costs.cc index c4086807076..50f80779025 100644 --- a/gcc/ira-costs.cc +++ b/gcc/ira-costs.cc @@ -1871,7 +1871,8 @@ calculate_equiv_gains (void) = ira_bb_nodes[bb->index].parent->regno_allocno_map; FOR_BB_INSNS (bb, insn) { - if (!INSN_P (insn) || !get_equiv_regno (PATTERN (insn), regno, subreg) + if (!NONDEBUG_INSN_P (insn) + || !get_equiv_regno (PATTERN (insn), regno, subreg) || !bitmap_bit_p (&equiv_pseudos, regno)) continue; rtx subst = ira_reg_equiv[regno].memory;