Message ID | 20230517184352.32144-1-amonakov@ispras.ru |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1347301vqo; Wed, 17 May 2023 11:44:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5aRnKWGV3awA8DhhSfrGKimmQSvkVc+HKnfOefFnmu+lSzqxfx1b2AycXEtT/F9cgoC1VM X-Received: by 2002:a17:907:6d8e:b0:966:5c04:2c61 with SMTP id sb14-20020a1709076d8e00b009665c042c61mr33379971ejc.8.1684349085130; Wed, 17 May 2023 11:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684349085; cv=none; d=google.com; s=arc-20160816; b=k84RrEchy1QagVnsseU3ZvPhXyIbRtwclG10YNIYAGsmW9t5aCN/YRDW88nYdYDqJj pf4jJ/mAoBNXX8e4z5F0+4nllTt2LhsPIqz8lz1ArHzZaaZHPx8G70Ak4QK8hHii6OPr T90IGo6ZfFGR8WuLN8ShHAskhjRsJxTY5Q2tbf2OwflZ1Kd3Q1f0liOFIxDEweAvB9Mr YUwKxEONNIay7moWBIuvCnBijSN9N+PcjRe9Y924clJpaHn7aRQTpO/HirKppGnEpAR2 XVxdpHDwi3KeMfwQRNYVsSp2MzInv7jKExuKnM26nUhZo2r8cUCFI/6RXBrSAbsL/nwP tJLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dkim-filter:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=2iCdocQqt4xMF1DLEfZjWcRazLB/dgYo8p9n8flzBnw=; b=Q8YcodtQt73+s/tQPX7/9V9SkvMRxloZhqOETNAZzQQXPLMN9Gvn4HS4CifR+bzXWd 7FImtkvJmh/I991VjOqfRSoE0OaRBMOf9VEzLhmF2sNsJpFvRFwxk7sNG7SxePBejDfT s2/DiNMSkAUWjVLSjrKSRGCADlED9lXR9lB5svSQiDO4UHwRmsBO+IAzfsyRuqEja7fb 7iWHgS+pliwI2LRMHfcPTVD3NR2LZZ4naT8fqujKT6pXO29IuZpkhqMXDY3yPPmHTonr vpdG9KUGt2wrdvEJ/Ld3+pQzWJFkxiNxfFlCWxBbLhE6rpJVo1RzJoXfoglq6TmiLy7/ 8Ghw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=IU+xgTL7; 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=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id n13-20020a170906688d00b0094a80dfc956si17729590ejr.711.2023.05.17.11.44.44 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 11:44:45 -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=@gcc.gnu.org header.s=default header.b=IU+xgTL7; 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 88C32385694E for <ouuuleilei@gmail.com>; Wed, 17 May 2023 18:44:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88C32385694E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684349080; bh=2iCdocQqt4xMF1DLEfZjWcRazLB/dgYo8p9n8flzBnw=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=IU+xgTL7uX2e0L4Lolz8kb/oNEr8fTcu4f4satT3KwoHX0lQLMz22s6aQN1YTWlgw zjiN6MOfGw+2SDOzwWUi13cQPC0nqE7LyP5h8PQ4Td0PYAdWziQPWD4/lkzcId9xK5 hkLmIQ/w0zAG4sBxQTdfoirfcKCrzG7pDse1A3yc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.84]) by sourceware.org (Postfix) with ESMTPS id 56F463858D1E for <gcc-patches@gcc.gnu.org>; Wed, 17 May 2023 18:43:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 56F463858D1E Received: from localhost.intra.ispras.ru (unknown [10.10.3.121]) by mail.ispras.ru (Postfix) with ESMTP id 9E75340737A1; Wed, 17 May 2023 18:43:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.ispras.ru 9E75340737A1 To: gcc-patches@gcc.gnu.org Cc: Alexander Monakov <amonakov@ispras.ru> Subject: [committed] tree-ssa-math-opts: correct -ffp-contract= check Date: Wed, 17 May 2023 21:43:52 +0300 Message-Id: <20230517184352.32144-1-amonakov@ispras.ru> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <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>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Alexander Monakov via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Alexander Monakov <amonakov@ispras.ru> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766168026230944883?= X-GMAIL-MSGID: =?utf-8?q?1766168026230944883?= |
Series |
[committed] tree-ssa-math-opts: correct -ffp-contract= check
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Alexander Monakov
May 17, 2023, 6:43 p.m. UTC
Since tree-ssa-math-opts may freely contract across statement boundaries we should enable it only for -ffp-contract=fast instead of disabling it for -ffp-contract=off. No functional change, since -ffp-contract=on is not exposed yet. gcc/ChangeLog: * tree-ssa-math-opts.cc (convert_mult_to_fma): Enable only for FP_CONTRACT_FAST (no functional change). --- Preapproved in PR 106092, pushed to trunk. gcc/tree-ssa-math-opts.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Wed, May 17, 2023 at 8:44 PM Alexander Monakov via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > Since tree-ssa-math-opts may freely contract across statement boundaries > we should enable it only for -ffp-contract=fast instead of disabling it > for -ffp-contract=off. > > No functional change, since -ffp-contract=on is not exposed yet. OK. > gcc/ChangeLog: > > * tree-ssa-math-opts.cc (convert_mult_to_fma): Enable only for > FP_CONTRACT_FAST (no functional change). > --- > > Preapproved in PR 106092, pushed to trunk. > > gcc/tree-ssa-math-opts.cc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/tree-ssa-math-opts.cc b/gcc/tree-ssa-math-opts.cc > index b58a2ac9e6..d71c51dc0e 100644 > --- a/gcc/tree-ssa-math-opts.cc > +++ b/gcc/tree-ssa-math-opts.cc > @@ -3320,7 +3320,7 @@ convert_mult_to_fma (gimple *mul_stmt, tree op1, tree op2, > imm_use_iterator imm_iter; > > if (FLOAT_TYPE_P (type) > - && flag_fp_contract_mode == FP_CONTRACT_OFF) > + && flag_fp_contract_mode != FP_CONTRACT_FAST) > return false; > > /* We don't want to do bitfield reduction ops. */ > -- > 2.39.2 >
diff --git a/gcc/tree-ssa-math-opts.cc b/gcc/tree-ssa-math-opts.cc index b58a2ac9e6..d71c51dc0e 100644 --- a/gcc/tree-ssa-math-opts.cc +++ b/gcc/tree-ssa-math-opts.cc @@ -3320,7 +3320,7 @@ convert_mult_to_fma (gimple *mul_stmt, tree op1, tree op2, imm_use_iterator imm_iter; if (FLOAT_TYPE_P (type) - && flag_fp_contract_mode == FP_CONTRACT_OFF) + && flag_fp_contract_mode != FP_CONTRACT_FAST) return false; /* We don't want to do bitfield reduction ops. */