public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/22401] DOM messes up the profiling info
       [not found] <bug-22401-4@http.gcc.gnu.org/bugzilla/>
@ 2014-07-28 17:21 ` law at redhat dot com
  2021-08-23 23:11 ` pinskia at gcc dot gnu.org
  2023-07-06 17:01 ` hubicka at gcc dot gnu.org
  2 siblings, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2014-07-28 17:21 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com

--- Comment #3 from Jeffrey A. Law <law at redhat dot com> ---
This will be worth rechecking after Teresa checks in her fixes for updating
profiling information in the jump threading code.


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

* [Bug tree-optimization/22401] DOM messes up the profiling info
       [not found] <bug-22401-4@http.gcc.gnu.org/bugzilla/>
  2014-07-28 17:21 ` [Bug tree-optimization/22401] DOM messes up the profiling info law at redhat dot com
@ 2021-08-23 23:11 ` pinskia at gcc dot gnu.org
  2023-07-06 17:01 ` hubicka at gcc dot gnu.org
  2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-23 23:11 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is a dup of bug 25623.  It is cfgcleanup after jump threading which is
causing it.

*** This bug has been marked as a duplicate of bug 25623 ***

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

* [Bug tree-optimization/22401] DOM messes up the profiling info
       [not found] <bug-22401-4@http.gcc.gnu.org/bugzilla/>
  2014-07-28 17:21 ` [Bug tree-optimization/22401] DOM messes up the profiling info law at redhat dot com
  2021-08-23 23:11 ` pinskia at gcc dot gnu.org
@ 2023-07-06 17:01 ` hubicka at gcc dot gnu.org
  2 siblings, 0 replies; 7+ messages in thread
From: hubicka at gcc dot gnu.org @ 2023-07-06 17:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
This is now threaded by threadfull2:

Checking profitability of path (backwards):  bb:3 (2 insns) bb:2
  Control statement insns: 2
  Overall: 0 insns

path: 2->3->xx REJECTED
Checking profitability of path (backwards):  bb:3 (2 insns) bb:5 (latch)
  Control statement insns: 2
  Overall: 0 insns

Checking profitability of path (backwards):
  [1] Registering jump thread: (5, 3) incoming edge;  (3, 5) nocopy;
path: 5->3->5 SUCCESS
Merging blocks 2 and 3
Merging blocks 5 and 6
fix_loop_structure: fixing up loops for function
fix_loop_structure: removing loop 1
flow_loops_find: discovered new loop 2 with header 3

and we get correct profile:

void __show_backtrace (void * rw)
{
;;   basic block 2, loop depth 0, count 118111600 (estimated locally), maybe
hot
;;    prev block 0, next block 3, flags: (NEW, REACHABLE, VISITED)
;;    pred:       ENTRY [always]  count:118111600 (estimated locally)
(FALLTHRU,EXECUTABLE)
  if (rw_1(D) != 0B)
    goto <bb 3>; [0.00%]
  else
    goto <bb 4>; [100.00%]
;;    succ:       3 [never (guessed)]  count:0 (estimated locally)
(TRUE_VALUE,EXECUTABLE)
;;                4 [always (guessed)]  count:118111600 (estimated locally)
(FALSE_VALUE,EXECUTABLE)

;;   basic block 3, loop depth 1, count 955630224 (estimated locally), maybe
hot
;;    prev block 2, next block 4, flags: (NEW, REACHABLE, VISITED)
;;    pred:       2 [never (guessed)]  count:0 (estimated locally)
(TRUE_VALUE,EXECUTABLE)
;;                3 [always]  count:955630224 (estimated locally)
(FALLTHRU,DFS_BACK)
  goto <bb 3>; [100.00%]
;;    succ:       3 [always]  count:955630224 (estimated locally)
(FALLTHRU,DFS_BACK)

;;   basic block 4, loop depth 0, count 118111600 (estimated locally), maybe
hot
;;    prev block 3, next block 1, flags: (NEW, REACHABLE, VISITED)
;;    pred:       2 [always (guessed)]  count:118111600 (estimated locally)
(FALSE_VALUE,EXECUTABLE)
  return;
;;    succ:       EXIT [always]  count:118111600 (estimated locally)
(EXECUTABLE) q.c:4:1

}

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

* [Bug tree-optimization/22401] DOM messes up the profiling info
  2005-07-11  5:14 [Bug tree-optimization/22401] New: " pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-07-15 22:18 ` pinskia at gcc dot gnu dot org
@ 2005-08-05  4:22 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-05  4:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-05 04:22 -------
(In reply to comment #1)
> DOM seems to be innocent here.

Hmm, VRP gets it correct, in that there are no warnings for the following code:

void __show_backtrace(void *rw)
{
  if (rw == 0)  return;

L0:;
  if (rw != 0) goto L0;

}

Which is equivalent to the what the trees look when it gets to DOM but then again VRP happens before 
profile happens.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22401


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

* [Bug tree-optimization/22401] DOM messes up the profiling info
  2005-07-11  5:14 [Bug tree-optimization/22401] New: " pinskia at gcc dot gnu dot org
  2005-07-11 16:26 ` [Bug tree-optimization/22401] " pinskia at gcc dot gnu dot org
  2005-07-15 10:01 ` hubicka at gcc dot gnu dot org
@ 2005-07-15 22:18 ` pinskia at gcc dot gnu dot org
  2005-08-05  4:22 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-15 22:18 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-15 22:14:42
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22401


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

* [Bug tree-optimization/22401] DOM messes up the profiling info
  2005-07-11  5:14 [Bug tree-optimization/22401] New: " pinskia at gcc dot gnu dot org
  2005-07-11 16:26 ` [Bug tree-optimization/22401] " pinskia at gcc dot gnu dot org
@ 2005-07-15 10:01 ` hubicka at gcc dot gnu dot org
  2005-07-15 22:18 ` pinskia at gcc dot gnu dot org
  2005-08-05  4:22 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 7+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2005-07-15 10:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hubicka at gcc dot gnu dot org  2005-07-15 09:58 -------
DOM seems to be innocent here.  Before DOM the header is copied and DOM notice that loop
is infinite when entered.  There is no sane way to represent infinite loop in profile
(ie it's frequency would have to be either infinity or 0) so without rescaling the rest we can't really do much.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22401


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

* [Bug tree-optimization/22401] DOM messes up the profiling info
  2005-07-11  5:14 [Bug tree-optimization/22401] New: " pinskia at gcc dot gnu dot org
@ 2005-07-11 16:26 ` pinskia at gcc dot gnu dot org
  2005-07-15 10:01 ` hubicka at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-11 16:26 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22401


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

end of thread, other threads:[~2023-07-06 17:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-22401-4@http.gcc.gnu.org/bugzilla/>
2014-07-28 17:21 ` [Bug tree-optimization/22401] DOM messes up the profiling info law at redhat dot com
2021-08-23 23:11 ` pinskia at gcc dot gnu.org
2023-07-06 17:01 ` hubicka at gcc dot gnu.org
2005-07-11  5:14 [Bug tree-optimization/22401] New: " pinskia at gcc dot gnu dot org
2005-07-11 16:26 ` [Bug tree-optimization/22401] " pinskia at gcc dot gnu dot org
2005-07-15 10:01 ` hubicka at gcc dot gnu dot org
2005-07-15 22:18 ` pinskia at gcc dot gnu dot org
2005-08-05  4:22 ` pinskia at gcc dot gnu dot 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).