From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 830343858C54 for ; Mon, 10 Oct 2022 18:58:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 830343858C54 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665428317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=98kiOkwJgSkgIXh4ktf6H391hSItV0blu+QeIIJZhbY=; b=AxTcDyNQ/Z6qjSn0rQKbE2j/P/rr2wjW7FB/pji0oXSJ+MuZI2K7UzQbsHxsAucn8+936W 7A2qYj2xdECbL4iq+JU7HKyqDaIp0tm0g4hYoy+xY4hJo7GmywyG6NjUhdsrUaLqDdREH+ abNzZ5n0fRACpUVr7ArETIvp4QDUSq8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-332-gkL3-r5jMV-WIu3uNNqudQ-1; Mon, 10 Oct 2022 14:58:36 -0400 X-MC-Unique: gkL3-r5jMV-WIu3uNNqudQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D65411C09C8A for ; Mon, 10 Oct 2022 18:58:35 +0000 (UTC) Received: from abulafia.quesejoda.com (unknown [10.39.192.108]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7B3B9404CD91; Mon, 10 Oct 2022 18:58:35 +0000 (UTC) Received: from abulafia.quesejoda.com (localhost [127.0.0.1]) by abulafia.quesejoda.com (8.17.1/8.17.1) with ESMTPS id 29AIwWwf312711 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 10 Oct 2022 20:58:32 +0200 Received: (from aldyh@localhost) by abulafia.quesejoda.com (8.17.1/8.17.1/Submit) id 29AIwWKJ312710; Mon, 10 Oct 2022 20:58:32 +0200 From: Aldy Hernandez To: GCC patches Cc: Andrew MacLeod , Aldy Hernandez Subject: [PATCH] Avoid calling tracer.trailer() twice. Date: Mon, 10 Oct 2022 20:58:29 +0200 Message-Id: <20221010185829.312666-1-aldyh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-12.0 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_NONE,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 List-Id: [Andrew, you OK with this? I can't tell whether the trailer() call was actually needed.] logical_combine is calling tracer.trailer() one too many times causing the second trailer() call to subtract a 0 indent by 2, yielding an indent of SOMETHING_REALLY_BIG :). You'd be surprised how many tools can't handle incredibly long lines. gcc/ChangeLog: * gimple-range-gori.cc (gori_compute::logical_combine): Avoid calling tracer.trailer(). --- gcc/gimple-range-gori.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gcc/gimple-range-gori.cc b/gcc/gimple-range-gori.cc index b37d03cddda..469382aa477 100644 --- a/gcc/gimple-range-gori.cc +++ b/gcc/gimple-range-gori.cc @@ -798,20 +798,12 @@ gori_compute::logical_combine (vrange &r, enum tree_code code, // would be lost. if (!range_is_either_true_or_false (lhs)) { - bool res; Value_Range r1 (r); if (logical_combine (r1, code, m_bool_zero, op1_true, op1_false, op2_true, op2_false) && logical_combine (r, code, m_bool_one, op1_true, op1_false, op2_true, op2_false)) - { - r.union_ (r1); - res = true; - } - else - res = false; - if (idx) - tracer.trailer (idx, "logical_combine", res, NULL_TREE, r); + r.union_ (r1); } switch (code) -- 2.37.3