From patchwork Mon Oct 25 14:45:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew MacLeod X-Patchwork-Id: 1545802 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=RuUwTfEf; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4HdHrL6lDzz9tjx for ; Tue, 26 Oct 2021 01:48:18 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D75DD385843E for ; Mon, 25 Oct 2021 14:48:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D75DD385843E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1635173296; bh=rIFYIYF4Ci9uWkmMgKXDaNLvKto3+xCjCYVQ+hAkE8E=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=RuUwTfEfoWRAsnqSnLILixPTxunSBpKUrD0CG4Jsc32odr3KPAZt++dJGlCgLa3jM PFwmrlXLG4NOniKIdggm1WdSu3mk6XF4cWrh63wtj8MU99eI0algW9dy4YarYH90f8 jVt4rwDfmlTEGPNtQiypBlXsMaD2u7AdNY/LF4UQ= 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.129.124]) by sourceware.org (Postfix) with ESMTPS id 93341385800A for ; Mon, 25 Oct 2021 14:46:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 93341385800A Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-99-vFAjtBjvMd6XoTEtJknUjw-1; Mon, 25 Oct 2021 10:46:00 -0400 X-MC-Unique: vFAjtBjvMd6XoTEtJknUjw-1 Received: by mail-qv1-f71.google.com with SMTP id dc4-20020a056214174400b003853fe024bfso823787qvb.13 for ; Mon, 25 Oct 2021 07:46:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language; bh=rIFYIYF4Ci9uWkmMgKXDaNLvKto3+xCjCYVQ+hAkE8E=; b=n79KoYO2bE3Pcvv6qWSJUiQTKNfan0v3K7S+PxttR30rRtaIU5l1yQvn5THiZcxhw9 5x/nfsU79/S2aTaBAAHyioOdefk6M5REJdmx6GTcubjhO6EpqfYHiyHDh5rBJGzpXs9M dHr3KappGapXRFQ8XOJiXCAZJxRauZwIBjiG3S+Z9VL0tNSsUkOQdiD6jQNldXMxwV/u AHi/QqCeECamyS41U6VWUCCBRGldggwM8tXhxD/21CcwEkuBnxPlM/thoiw8zkmDKc1u f4NhjDytIXB2Wt4PhgC9jIX/gvBTzuKGOLp0m7tXQ06aGOPcImb4pNVdREEvjHXrdcuw EHRg== X-Gm-Message-State: AOAM530So6+8QFIrDhUrZl1EwV8A17hTo32xHNSooCYOANUIc/rhcPxd oLQQOJgAYF2z6XKVZNEF0XCpgu5yHpSyjJ/56RLyRVkZ5jEGOipgemUf8DVDye1YhzKBvkKVNyZ JuoBF8Y9t1nSjc4Fr6A== X-Received: by 2002:a05:620a:c4a:: with SMTP id u10mr8951944qki.69.1635173160317; Mon, 25 Oct 2021 07:46:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhL9Y5XfnRffjXyDVBxqn6gyffklyhPknstyV4zMo0OyKowCM107gUPffxVUAR7H4UXvZuFQ== X-Received: by 2002:a05:620a:c4a:: with SMTP id u10mr8951924qki.69.1635173160152; Mon, 25 Oct 2021 07:46:00 -0700 (PDT) Received: from [192.168.0.102] ([192.24.49.122]) by smtp.gmail.com with ESMTPSA id i22sm2050396qko.2.2021.10.25.07.45.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Oct 2021 07:45:59 -0700 (PDT) To: gcc-patches Subject: [COMMITTED] Always output exported ranges to a dump_file. Message-ID: Date: Mon, 25 Oct 2021 10:45:58 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-CA X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Andrew MacLeod via Gcc-patches From: Andrew MacLeod Reply-To: Andrew MacLeod Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" This patch makes execute_ranger_vrp () match what VRP does and output any exported ranges at the end of the pass to a dump file, without needing TDF_DETAILS to be provided. Bootstraps onx86_64-pc-linux-gnu with no regressions.  Pushed. Andrew From 17d26698aa31268acdf5e1d4d0bc363dd35378ac Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Wed, 20 Oct 2021 13:41:12 -0400 Subject: [PATCH 2/3] Always output exported ranges to a dump_file. * gimple-range.cc (gimple_ranger::export_global_ranges): Remove check for TDF_DETAILS. --- gcc/gimple-range.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gimple-range.cc b/gcc/gimple-range.cc index 69cde911c49..91bacda6dd0 100644 --- a/gcc/gimple-range.cc +++ b/gcc/gimple-range.cc @@ -303,7 +303,7 @@ gimple_ranger::export_global_ranges () && !r.varying_p()) { bool updated = update_global_range (r, name); - if (!updated || !dump_file || !(dump_flags & TDF_DETAILS)) + if (!updated || !dump_file) continue; if (print_header) -- 2.17.2