Re: [PATCH v2] gcc: do not apply store motion on loop with no exits.

2025-04-27 Thread Sam James via Gcc
ywgrit  writes:

> I encountered one problem with loop-im pass.
> I compiled the program dhry2reg which belongs to 
> unixbench(https://github.com/kdlucas/byte-unixbench).
>
> The gcc used
> gcc (GCC) 12.3.0
>
> The commands executed as following
> make
> ./Run -c -i 1 dhry2reg
>
> The results are shown below.
> Dhrystone 2 using register variables  0.1 lps   (10.0 s, 1 
> samples)
>
> System Benchmarks Partial Index  BASELINE   RESULTINDEX
> Dhrystone 2 using register variables 116700.0  0.1  0.0
>
> System Benchmarks Index Score (Partial Only)   10.0
>
> Obviously, the "INDEX" is abnormal.
> I wrote a demo named dhry.c based on the dhry2reg logic.

It's best to file a bug report so we can:
a) discuss the validity of the testcase, and
b) reference it in review of the commit & even once it is in

.. but that said, I thought this looked familiar, and I found PR117695
which is marked as INVALID.

> [...]

FWIW, all the analysis should go in the commit message, as well as
including a testcase in the commit itself. The commit message should
also have a ChangeLog. See these links:
* https://gcc.gnu.org/contribute.html
* https://gcc.gnu.org/codingconventions.html

But these are general remarks. I can't approve the patch (that is for
others) but I'm not sure if the testcase is valid anyway.

> [...]

thanks,
sam


gcc-16-20250427 is now available

2025-04-27 Thread GCC Administrator via Gcc
Snapshot gcc-16-20250427 is now available on
  https://gcc.gnu.org/pub/gcc/snapshots/16-20250427/
and on various mirrors, see https://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 16 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch master 
revision 1c5cf7cc82d3a2afa5d4fb90049456be408c2a7a

You'll find:

 gcc-16-20250427.tar.xz   Complete GCC

  SHA256=545b46c123dcc303c2bcd319ceda174733c30cd4574f8ed732f582c3aba7af5e
  SHA1=3295d0d779fb832783fc8d0b303e8f3da3877d1d

Diffs from 16- are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-16
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.