public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23622] Dom jump threading at -O1 confuses branch prediction
[not found] <bug-23622-4@http.gcc.gnu.org/bugzilla/>
@ 2013-09-17 20:46 ` law at redhat dot com
0 siblings, 0 replies; 5+ messages in thread
From: law at redhat dot com @ 2013-09-17 20:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23622
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |law at redhat dot com
Resolution|--- |FIXED
--- Comment #5 from Jeffrey A. Law <law at redhat dot com> ---
AFAICT this works fine in the 4.9 trunk.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/23622] Dom jump threading at -O1 confuses branch prediction
2005-08-29 12:08 [Bug tree-optimization/23622] New: " rakdver at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-08-29 17:16 ` pinskia at gcc dot gnu dot org
@ 2005-09-15 19:28 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-15 19:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-15 19:28 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-15 19:28:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23622
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/23622] Dom jump threading at -O1 confuses branch prediction
2005-08-29 12:08 [Bug tree-optimization/23622] New: " rakdver at gcc dot gnu dot org
2005-08-29 13:04 ` [Bug tree-optimization/23622] " pinskia at gcc dot gnu dot org
2005-08-29 13:19 ` rakdver at gcc dot gnu dot org
@ 2005-08-29 17:16 ` pinskia at gcc dot gnu dot org
2005-09-15 19:28 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-29 17:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-29 16:20 -------
If we run CCP right after DOM and do a DCE, we get a cleaned up loops.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23622
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/23622] Dom jump threading at -O1 confuses branch prediction
2005-08-29 12:08 [Bug tree-optimization/23622] New: " rakdver at gcc dot gnu dot org
2005-08-29 13:04 ` [Bug tree-optimization/23622] " pinskia at gcc dot gnu dot org
@ 2005-08-29 13:19 ` rakdver at gcc dot gnu dot org
2005-08-29 17:16 ` pinskia at gcc dot gnu dot org
2005-09-15 19:28 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2005-08-29 13:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rakdver at gcc dot gnu dot org 2005-08-29 13:18 -------
Sorry, I have simplified the testcase and only looked at the dom1 dump. You
need the following testcase to reproduce the problem (for the second loop):
void foo (void)
{
int i;
for (i = 0; i < 100; i++)
something ();
for (i = 0; i < 100; i++)
something ();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23622
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/23622] Dom jump threading at -O1 confuses branch prediction
2005-08-29 12:08 [Bug tree-optimization/23622] New: " rakdver at gcc dot gnu dot org
@ 2005-08-29 13:04 ` pinskia at gcc dot gnu dot org
2005-08-29 13:19 ` rakdver at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-29 13:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-29 12:57 -------
Hmm, in dom1 we get:
<bb 0>:
goto <bb 4> (<L3>);
# i_4 = PHI <i_1(2), i_2(4)>;
<L0>:;
something ();
i_3 = i_4 + 1;
# i_1 = PHI <i_3(1)>;
<L1>:;
if (i_1 <= 99) goto <L0>; else goto <L2>;
<L2>:;
return;
# i_2 = PHI <0(0)>;
<L3>:;
goto <bb 1> (<L0>);
In PHI-OPT we get:
# i_4 = PHI <i_3(1), 0(0)>;
<L0>:;
something ();
i_3 = i_4 + 1;
if (i_3 <= 99) goto <L0>; else goto <L2>;
Becuase we run a cfg cleanup. I don't see anything wrong here now.
This is the same for -O2 also.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23622
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-09-17 20:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-23622-4@http.gcc.gnu.org/bugzilla/>
2013-09-17 20:46 ` [Bug tree-optimization/23622] Dom jump threading at -O1 confuses branch prediction law at redhat dot com
2005-08-29 12:08 [Bug tree-optimization/23622] New: " rakdver at gcc dot gnu dot org
2005-08-29 13:04 ` [Bug tree-optimization/23622] " pinskia at gcc dot gnu dot org
2005-08-29 13:19 ` rakdver at gcc dot gnu dot org
2005-08-29 17:16 ` pinskia at gcc dot gnu dot org
2005-09-15 19:28 ` 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).