public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ?
@ 2023-01-24 17:00 dcb314 at hotmail dot com
  2023-01-24 17:04 ` [Bug tree-optimization/108523] " dcb314 at hotmail dot com
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-24 17:00 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108523
           Summary: -O1 -fcode-hoisting causes long compilation time  ?
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 54337
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54337&action=edit
C source code

The attached C code takes about 0.1 seconds to compile normally:

$ (ulimit -t 300; time ../results.20230124.release/bin/gcc -c -w -O1   
-fno-var-tracking bug875.c)

real    0m0.133s
user    0m0.095s
sys     0m0.013s

Add in -fcode-hoisting and it seems to take a lot longer:

$ (ulimit -t 300; time ../results.20230124.release/bin/gcc -c -w -O1 
-fcode-hoisting  -fno-var-tracking bug875.c)
gcc: fatal error: Killed signal terminated program cc1
compilation terminated.

real    5m3.155s
user    4m59.955s
sys     0m0.017s

$ ../results.20230124.release/bin/gcc -v
Using built-in specs.
COLLECT_GCC=../results.20230124.release/bin/gcc
COLLECT_LTO_WRAPPER=/home/dcb36/gcc/results.20230124.release/libexec/gcc/x86_64-pc-linux-gnu/13.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk.d1/configure
--prefix=/home/dcb36/gcc/results.20230124.release --disable-multilib
--disable-bootstrap --with-pkgversion=e304e9283a97e28d
--enable-checking=release --enable-languages=c
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.1 20230124 (experimental) (e304e9283a97e28d)

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

* [Bug tree-optimization/108523] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
@ 2023-01-24 17:04 ` dcb314 at hotmail dot com
  2023-01-24 17:29 ` dcb314 at hotmail dot com
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-24 17:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Also won't run to completion with a ulimit of 750 seconds. 

Trying 1200 seconds.

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

* [Bug tree-optimization/108523] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
  2023-01-24 17:04 ` [Bug tree-optimization/108523] " dcb314 at hotmail dot com
@ 2023-01-24 17:29 ` dcb314 at hotmail dot com
  2023-01-24 17:42 ` dcb314 at hotmail dot com
                   ` (17 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-24 17:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Doesn't complete in 1200 seconds.

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

* [Bug tree-optimization/108523] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
  2023-01-24 17:04 ` [Bug tree-optimization/108523] " dcb314 at hotmail dot com
  2023-01-24 17:29 ` dcb314 at hotmail dot com
@ 2023-01-24 17:42 ` dcb314 at hotmail dot com
  2023-01-24 18:00 ` dcb314 at hotmail dot com
                   ` (16 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-24 17:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
Problem seems to start sometime before git hash g:9b111debbfb79a0a,
dated 20221229.

I'll try a build of a month earlier.

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

* [Bug tree-optimization/108523] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2023-01-24 17:42 ` dcb314 at hotmail dot com
@ 2023-01-24 18:00 ` dcb314 at hotmail dot com
  2023-01-24 18:25 ` dcb314 at hotmail dot com
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-24 18:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from David Binderman <dcb314 at hotmail dot com> ---
Seems to run fine in about 0.1 seconds with g:4d08c674b0114622,
dated 20221129.

That seems to be about 533 commits.

I'll have a go at a git bisect.

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

* [Bug tree-optimization/108523] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2023-01-24 18:00 ` dcb314 at hotmail dot com
@ 2023-01-24 18:25 ` dcb314 at hotmail dot com
  2023-01-24 18:40 ` dcb314 at hotmail dot com
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-24 18:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from David Binderman <dcb314 at hotmail dot com> ---
Current range seems to be g:4d08c674b0114622 .. g:400d9fc1f0433611
which is 133 commits.

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

* [Bug tree-optimization/108523] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2023-01-24 18:25 ` dcb314 at hotmail dot com
@ 2023-01-24 18:40 ` dcb314 at hotmail dot com
  2023-01-24 18:56 ` dcb314 at hotmail dot com
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-24 18:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from David Binderman <dcb314 at hotmail dot com> ---
Git range now seems to be g:4d08c674b0114622 .. g:b2aa75ded65f8c02
which is a range of 33 commits.

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

* [Bug tree-optimization/108523] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (5 preceding siblings ...)
  2023-01-24 18:40 ` dcb314 at hotmail dot com
@ 2023-01-24 18:56 ` dcb314 at hotmail dot com
  2023-01-24 19:41 ` dcb314 at hotmail dot com
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-24 18:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from David Binderman <dcb314 at hotmail dot com> ---
Git range now seems to be g:4d08c674b0114622 .. g:36cabc257dfb7dd4
which is 8 commits.

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

* [Bug tree-optimization/108523] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (6 preceding siblings ...)
  2023-01-24 18:56 ` dcb314 at hotmail dot com
@ 2023-01-24 19:41 ` dcb314 at hotmail dot com
  2023-01-24 19:49 ` [Bug tree-optimization/108523] [13 Regression] " pinskia at gcc dot gnu.org
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-24 19:41 UTC (permalink / raw)
  To: gcc-bugs

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

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenther at suse dot de

--- Comment #8 from David Binderman <dcb314 at hotmail dot com> ---
Commit g:fd8dd6c0384969170e594be34da278a072d5eb76 dated 2022-11-29
looks to be the one that causes the bug.

fd8dd6c0384969170e594be34da278a072d5eb76 is the first bad commit
commit fd8dd6c0384969170e594be34da278a072d5eb76
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Nov 29 12:56:22 2022 +0100


Over to Richard for their best advice.

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (7 preceding siblings ...)
  2023-01-24 19:41 ` dcb314 at hotmail dot com
@ 2023-01-24 19:49 ` pinskia at gcc dot gnu.org
  2023-01-25  7:35 ` rguenth at gcc dot gnu.org
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-24 19:49 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0
            Summary|-O1 -fcode-hoisting causes  |[13 Regression] -O1
                   |long compilation time  ?    |-fcode-hoisting causes long
                   |                            |compilation time  ?

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (8 preceding siblings ...)
  2023-01-24 19:49 ` [Bug tree-optimization/108523] [13 Regression] " pinskia at gcc dot gnu.org
@ 2023-01-25  7:35 ` rguenth at gcc dot gnu.org
  2023-01-25 10:06 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-25  7:35 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Last reconfirmed|                            |2023-01-25
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look.

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (9 preceding siblings ...)
  2023-01-25  7:35 ` rguenth at gcc dot gnu.org
@ 2023-01-25 10:06 ` rguenth at gcc dot gnu.org
  2023-01-25 11:19 ` rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-25 10:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
We don't converge:

Predication says _347 and _346 are equal on edge 108 -> 20
Setting value number of g_6_lsm.126_456 to _346 (changed)
Iterating to 25 BB20
...
Setting value number of g_6_lsm.126_456 to _347 (changed)
Iterating to 25 BB20
...
Predication says _347 and _346 are equal on edge 108 -> 20
Setting value number of g_6_lsm.126_456 to _346 (changed)
Iterating to 25 BB20
...
Setting value number of g_6_lsm.126_456 to _347 (changed)
Iterating to 25 BB20
...

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (10 preceding siblings ...)
  2023-01-25 10:06 ` rguenth at gcc dot gnu.org
@ 2023-01-25 11:19 ` rguenth at gcc dot gnu.org
  2023-01-25 12:31 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-25 11:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
So the issue is that we oscillate between recognizing the PHI as degenerate
because of an equivalence recorded on the non-backedge(!) to the backedge value
which in turn changes because of this change:

Value numbering stmt = g_6_lsm.126_456 = PHI <g_6_lsm.126_304(19),
g_6_lsm.126_338(108)>
Setting value number of g_6_lsm.126_456 to _347
...
Value numbering stmt = _350 = g_6_lsm.126_456;
Setting value number of _350 to _347 (changed)
_347 is available for _347
Value numbering stmt = _352 = _348 ^ _350;
_347 is available for _347
Match-and-simplified _348 ^ _350 to _346
RHS _348 ^ _350 simplified to _346
Setting value number of _352 to _346 (changed)
_346 is available for _346
Value numbering stmt = g_6_lsm.126_304 = _352;
Setting value number of g_6_lsm.126_304 to _346 (changed)
_346 is available for _346
Looking for changed values of backedge 19->20 destination PHIs
Setting value number of g_481.64_448 to g_481.64_448
Setting value number of .MEM_464 to .MEM_409
Predication says _347 and _346 are equal on edge 108 -> 20
Setting value number of g_6_lsm.126_456 to _346 (changed)
Iterating to 25 BB20
...
Value numbering stmt = g_6_lsm.126_456 = PHI <g_6_lsm.126_304(19),
g_6_lsm.126_338(108)>
Predication says _347 and _346 are equal on edge 108 -> 20
Setting value number of g_6_lsm.126_456 to _346
...
Value numbering stmt = _350 = g_6_lsm.126_456;
Setting value number of _350 to _346 (changed)
_346 is available for _346
Value numbering stmt = _352 = _348 ^ _350;
_346 is available for _346
Match-and-simplified _348 ^ _350 to _347
RHS _348 ^ _350 simplified to _347
Setting value number of _352 to _347 (changed)
_347 is available for _347
Value numbering stmt = g_6_lsm.126_304 = _352;
Setting value number of g_6_lsm.126_304 to _347 (changed)
_347 is available for _347
Looking for changed values of backedge 19->20 destination PHIs
Setting value number of g_481.64_448 to g_481.64_448
Setting value number of .MEM_464 to .MEM_409
Setting value number of g_6_lsm.126_456 to _347 (changed)
Iterating to 25 BB20

and repeat.

And we have:

  _348 = _346 ^ _347;

and

<bb 18> [local count: 42914375]:
# g_1198.66_449 = PHI <_358(141), 0(17)>
# g_6_lsm.126_131 = PHI <g_6_lsm.126_349(141), g_6_lsm.126_438(17)>
g_481_lsm.127_447 = 1;
_57 = g_6_lsm.126_131;
_58 = _57 ^ _348;
g_6_lsm.126_338 = _58;
if (_346 != _347)
  goto <bb 150>; [5.50%]
else
  goto <bb 108>; [94.50%]

<bb 108> [local count: 40554084]:
goto <bb 20>; [100.00%]


So when the value we compare to oscillates.  Interestingly when I try
to feed a similar case into FRE1 that "works":

int foo (int a, int b, int n)
{
  int val = a;
  if (a == b)
    {
      do
        {
          val = (a ^ b) ^ val;
        }
      while (--n > 0);
    }
  return val;
}

but maybe this is by luck.  So what we need to avoid is for an equivalence
a == b, to oscillate between 'a' and 'b' as result.

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (11 preceding siblings ...)
  2023-01-25 11:19 ` rguenth at gcc dot gnu.org
@ 2023-01-25 12:31 ` rguenth at gcc dot gnu.org
  2023-01-25 12:37 ` cvs-commit at gcc dot gnu.org
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-25 12:31 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
           Keywords|                            |needs-reduction

--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> ---
I have a patch but the testcase is too large.

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (12 preceding siblings ...)
  2023-01-25 12:31 ` rguenth at gcc dot gnu.org
@ 2023-01-25 12:37 ` cvs-commit at gcc dot gnu.org
  2023-01-25 12:38 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-01-25 12:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:c29d85359add807200a1a851026b4e4a9d6b714c

commit r13-5348-gc29d85359add807200a1a851026b4e4a9d6b714c
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Jan 25 13:31:46 2023 +0100

    tree-optimization/108523 - fix endless iteration in VN

    The following fixes not converging iteration in value-numbering of
    PHI nodes when we use an equivalence to prove the PHI node is
    degenerate.  We have to avoid the situation where we oscillate
    between the two equivalent values because the result is fed back
    via a backedge.

            PR tree-optimization/108523
            * tree-ssa-sccvn.cc (visit_phi): Avoid using the exclusive
            backedge value for the result when using predication to
            prove equivalence.

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (13 preceding siblings ...)
  2023-01-25 12:37 ` cvs-commit at gcc dot gnu.org
@ 2023-01-25 12:38 ` rguenth at gcc dot gnu.org
  2023-01-25 16:49 ` dcb314 at hotmail dot com
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-25 12:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed, but I'll see if somebody comes up with a reduced testcase.

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (14 preceding siblings ...)
  2023-01-25 12:38 ` rguenth at gcc dot gnu.org
@ 2023-01-25 16:49 ` dcb314 at hotmail dot com
  2023-01-25 17:10 ` dcb314 at hotmail dot com
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-25 16:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Richard Biener from comment #14)
> Fixed, but I'll see if somebody comes up with a reduced testcase.

I have a reduction running with cvise.

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (15 preceding siblings ...)
  2023-01-25 16:49 ` dcb314 at hotmail dot com
@ 2023-01-25 17:10 ` dcb314 at hotmail dot com
  2023-01-26  7:21 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2023-01-25 17:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from David Binderman <dcb314 at hotmail dot com> ---
cvise produces:

int g_149, g_167, g_481;
main() {
  int *l_1478 = &g_149;
  *l_1478 ^= g_167;
lbl_1481:
  for (;;) {
    g_481 = 1;
    for (; g_481; g_481 += 1) {
      g_167 ^= *l_1478;
      if (g_149)
        goto lbl_1481;
    }
  }
}

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (16 preceding siblings ...)
  2023-01-25 17:10 ` dcb314 at hotmail dot com
@ 2023-01-26  7:21 ` rguenth at gcc dot gnu.org
  2023-01-26  7:39 ` cvs-commit at gcc dot gnu.org
  2023-01-26  7:40 ` rguenth at gcc dot gnu.org
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-26  7:21 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-reduction             |

--- Comment #17 from Richard Biener <rguenth at gcc dot gnu.org> ---
Thanks a lot!

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (17 preceding siblings ...)
  2023-01-26  7:21 ` rguenth at gcc dot gnu.org
@ 2023-01-26  7:39 ` cvs-commit at gcc dot gnu.org
  2023-01-26  7:40 ` rguenth at gcc dot gnu.org
  19 siblings, 0 replies; 21+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-01-26  7:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:1f6d05e9ad858b59b824f57d09400adcb2c5e4ad

commit r13-5378-g1f6d05e9ad858b59b824f57d09400adcb2c5e4ad
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Jan 26 08:38:35 2023 +0100

    tree-optimization/108523 - testcase for the bug

    This adds a reduced testcase for the PR.

            PR tree-optimization/108523
            * gcc.dg/torture/pr108523.c: New testcase.

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

* [Bug tree-optimization/108523] [13 Regression] -O1 -fcode-hoisting causes long compilation time  ?
  2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
                   ` (18 preceding siblings ...)
  2023-01-26  7:39 ` cvs-commit at gcc dot gnu.org
@ 2023-01-26  7:40 ` rguenth at gcc dot gnu.org
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-26  7:40 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #19 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

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

end of thread, other threads:[~2023-01-26  7:40 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-24 17:00 [Bug c/108523] New: -O1 -fcode-hoisting causes long compilation time ? dcb314 at hotmail dot com
2023-01-24 17:04 ` [Bug tree-optimization/108523] " dcb314 at hotmail dot com
2023-01-24 17:29 ` dcb314 at hotmail dot com
2023-01-24 17:42 ` dcb314 at hotmail dot com
2023-01-24 18:00 ` dcb314 at hotmail dot com
2023-01-24 18:25 ` dcb314 at hotmail dot com
2023-01-24 18:40 ` dcb314 at hotmail dot com
2023-01-24 18:56 ` dcb314 at hotmail dot com
2023-01-24 19:41 ` dcb314 at hotmail dot com
2023-01-24 19:49 ` [Bug tree-optimization/108523] [13 Regression] " pinskia at gcc dot gnu.org
2023-01-25  7:35 ` rguenth at gcc dot gnu.org
2023-01-25 10:06 ` rguenth at gcc dot gnu.org
2023-01-25 11:19 ` rguenth at gcc dot gnu.org
2023-01-25 12:31 ` rguenth at gcc dot gnu.org
2023-01-25 12:37 ` cvs-commit at gcc dot gnu.org
2023-01-25 12:38 ` rguenth at gcc dot gnu.org
2023-01-25 16:49 ` dcb314 at hotmail dot com
2023-01-25 17:10 ` dcb314 at hotmail dot com
2023-01-26  7:21 ` rguenth at gcc dot gnu.org
2023-01-26  7:39 ` cvs-commit at gcc dot gnu.org
2023-01-26  7:40 ` rguenth 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).