public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/112468] New: [14 Regression] Missed phi-opt after recent change
@ 2023-11-09 19:55 law at gcc dot gnu.org
  2023-11-09 20:05 ` [Bug tree-optimization/112468] " pinskia at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: law at gcc dot gnu.org @ 2023-11-09 19:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112468

            Bug ID: 112468
           Summary: [14 Regression] Missed phi-opt after recent change
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: law at gcc dot gnu.org
  Target Milestone: ---

This change:

commit 3f176e1adc6bc9cc2c21222d776b51d9f43cb66b (HEAD)
Author: Tamar Christina <tamar.christina@arm.com>
Date:   Thu Nov 9 13:59:39 2023 +0000

    middle-end: optimize fneg (fabs (x)) to copysign (x, -1) [PR109154]

    This patch transforms fneg (fabs (x)) into copysign (x, -1) which is more
    canonical and allows a target to expand this sequence efficiently.  Such
    sequences are common in scientific code working with gradients.

    There is an existing canonicalization of copysign (x, -1) to fneg (fabs
(x))
    which I remove since this is a less efficient form.  The testsuite is also
    updated in light of this.

    gcc/ChangeLog:

            PR tree-optimization/109154
            * match.pd: Add new neg+abs rule, remove inverse copysign rule.

    gcc/testsuite/ChangeLog:

            PR tree-optimization/109154
            * gcc.dg/fold-copysign-1.c: Updated.
            * gcc.dg/pr55152-2.c: Updated.
            * gcc.dg/tree-ssa/abs-4.c: Updated.
            * gcc.dg/tree-ssa/backprop-6.c: Updated.
            * gcc.dg/tree-ssa/copy-sign-2.c: Updated.
            * gcc.dg/tree-ssa/mult-abs-2.c: Updated.
            * gcc.target/aarch64/fneg-abs_1.c: New test.
            * gcc.target/aarch64/fneg-abs_2.c: New test.
            * gcc.target/aarch64/fneg-abs_3.c: New test.
            * gcc.target/aarch64/fneg-abs_4.c: New test.
            * gcc.target/aarch64/sve/fneg-abs_1.c: New test.
            * gcc.target/aarch64/sve/fneg-abs_2.c: New test.
            * gcc.target/aarch64/sve/fneg-abs_3.c: New test.
            * gcc.target/aarch64/sve/fneg-abs_4.c: New test.



Is causing a testsuite regression on moxie-elf.  This is a scan dump failure,
so you don't need a full toolchain, just a cross compiler.

moxie-sim: gcc.dg/tree-ssa/phi-opt-24.c scan-tree-dump-not phiopt2 "if"

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-01-10 17:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-09 19:55 [Bug tree-optimization/112468] New: [14 Regression] Missed phi-opt after recent change law at gcc dot gnu.org
2023-11-09 20:05 ` [Bug tree-optimization/112468] " pinskia at gcc dot gnu.org
2023-11-10  3:55 ` pinskia at gcc dot gnu.org
2023-11-10  4:06 ` pinskia at gcc dot gnu.org
2023-11-10  7:25 ` tnfchris at gcc dot gnu.org
2023-11-10  7:52 ` pinskia at gcc dot gnu.org
2023-11-10  8:31 ` rguenth at gcc dot gnu.org
2023-11-13  1:22 ` hp at gcc dot gnu.org
2023-11-13  7:04 ` tnfchris at gcc dot gnu.org
2023-12-10 19:34 ` pinskia at gcc dot gnu.org
2023-12-13 15:41 ` [Bug tree-optimization/112468] [14 Regression] Missed phi-opt after recent change (phi-opt-24.c) hp at gcc dot gnu.org
2023-12-13 15:44 ` tnfchris at gcc dot gnu.org
2023-12-14  0:36 ` hp at gcc dot gnu.org
2023-12-19  2:40 ` sandra at gcc dot gnu.org
2024-01-10 17:19 ` cvs-commit at gcc dot gnu.org
2024-01-10 17:21 ` tnfchris at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).