* [Bug tree-optimization/61009] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
@ 2014-04-29 21:34 ` tejohnson at google dot com
2014-04-29 21:35 ` pinskia at gcc dot gnu.org
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: tejohnson at google dot com @ 2014-04-29 21:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #1 from Teresa Johnson <tejohnson at google dot com> ---
Created attachment 32710
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32710&action=edit
t.C.078t.dom1
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
2014-04-29 21:34 ` [Bug tree-optimization/61009] " tejohnson at google dot com
@ 2014-04-29 21:35 ` pinskia at gcc dot gnu.org
2014-04-29 21:36 ` ppluzhnikov at google dot com
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-04-29 21:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likely related to bug 60902.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
2014-04-29 21:34 ` [Bug tree-optimization/61009] " tejohnson at google dot com
2014-04-29 21:35 ` pinskia at gcc dot gnu.org
@ 2014-04-29 21:36 ` ppluzhnikov at google dot com
2014-04-29 21:46 ` ppluzhnikov at google dot com
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: ppluzhnikov at google dot com @ 2014-04-29 21:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
Paul Pluzhnikov <ppluzhnikov at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppluzhnikov at google dot com
--- Comment #3 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
Google ref: b/14380607
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (2 preceding siblings ...)
2014-04-29 21:36 ` ppluzhnikov at google dot com
@ 2014-04-29 21:46 ` ppluzhnikov at google dot com
2014-04-29 21:49 ` law at redhat dot com
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: ppluzhnikov at google dot com @ 2014-04-29 21:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #4 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
(In reply to Andrew Pinski from comment #2)
> Most likely related to bug 60902.
Teresa, could you verify whether r209860 (for PR60902) fixes this one as well?
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (3 preceding siblings ...)
2014-04-29 21:46 ` ppluzhnikov at google dot com
@ 2014-04-29 21:49 ` law at redhat dot com
2014-04-29 22:46 ` tejohnson at google dot com
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: law at redhat dot com @ 2014-04-29 21:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at redhat dot com
--- Comment #5 from Jeffrey A. Law <law at redhat dot com> ---
I really doubt this is related to 60902.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (4 preceding siblings ...)
2014-04-29 21:49 ` law at redhat dot com
@ 2014-04-29 22:46 ` tejohnson at google dot com
2014-04-30 18:01 ` law at redhat dot com
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: tejohnson at google dot com @ 2014-04-29 22:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #6 from Teresa Johnson <tejohnson at google dot com> ---
On Tue, Apr 29, 2014 at 2:46 PM, ppluzhnikov at google dot com
<gcc-bugzilla@gcc.gnu.org> wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
>
> --- Comment #4 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
> (In reply to Andrew Pinski from comment #2)
>> Most likely related to bug 60902.
>
> Teresa, could you verify whether r209860 (for PR60902) fixes this one as well?
I thought it might be a dup of that too, but I updated today to
r209902 and the problem remains.
Thanks,
Teresa
>
> --
> You are receiving this mail because:
> You reported the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (5 preceding siblings ...)
2014-04-29 22:46 ` tejohnson at google dot com
@ 2014-04-30 18:01 ` law at redhat dot com
2014-04-30 18:57 ` law at redhat dot com
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: law at redhat dot com @ 2014-04-30 18:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-04-30
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (6 preceding siblings ...)
2014-04-30 18:01 ` law at redhat dot com
@ 2014-04-30 18:57 ` law at redhat dot com
2014-05-07 17:35 ` xinliangli at gmail dot com
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: law at redhat dot com @ 2014-04-30 18:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #7 from Jeffrey A. Law <law at redhat dot com> ---
I see what's happening here... I need to think about how best to handle this
situation. Oh how threading across loop backedges perilous.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (7 preceding siblings ...)
2014-04-30 18:57 ` law at redhat dot com
@ 2014-05-07 17:35 ` xinliangli at gmail dot com
2014-05-08 19:46 ` xinliangli at gmail dot com
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: xinliangli at gmail dot com @ 2014-05-07 17:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
davidxl <xinliangli at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xinliangli at gmail dot com
--- Comment #8 from davidxl <xinliangli at gmail dot com> ---
(In reply to Jeffrey A. Law from comment #7)
> I see what's happening here... I need to think about how best to handle
> this situation. Oh how threading across loop backedges perilous.
Any update on this issue?
David
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (8 preceding siblings ...)
2014-05-07 17:35 ` xinliangli at gmail dot com
@ 2014-05-08 19:46 ` xinliangli at gmail dot com
2014-05-09 4:54 ` law at gcc dot gnu.org
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: xinliangli at gmail dot com @ 2014-05-08 19:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #10 from davidxl <xinliangli at gmail dot com> ---
(In reply to Jeffrey A. Law from comment #9)
> Sorry, personal issue taking an enormous amount of my time right now. I
> have a fully tested patch and just need to twiddle the attached test into an
> executable testcase for the regression suite.
Can you post the early version of the patch? We can help test it with larger
test cases that exposed the problem in the first place.
David
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (9 preceding siblings ...)
2014-05-08 19:46 ` xinliangli at gmail dot com
@ 2014-05-09 4:54 ` law at gcc dot gnu.org
2014-05-09 17:02 ` [Bug tree-optimization/61009] [4.9 Regression] " tejohnson at google dot com
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: law at gcc dot gnu.org @ 2014-05-09 4:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #11 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Fri May 9 04:54:00 2014
New Revision: 210254
URL: http://gcc.gnu.org/viewcvs?rev=210254&root=gcc&view=rev
Log:
2014-05-08 Jeff Law <law@redhat.com>
PR tree-optimization/61009
* tree-ssa-threadedge.c (thread_through_normal_block): Return a
tri-state rather than a boolean. When a block is too big to
thread through, inform caller via negative return value.
(thread_across_edge): If a block was too big for normal threading,
then it's too big for a joiner too, so remove temporary equivalences
and return immediately.
PR tree-optimization/61009
* g++.dg/tree-ssa/pr61009.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/tree-ssa/pr61009.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-threadedge.c
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] [4.9 Regression] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (10 preceding siblings ...)
2014-05-09 4:54 ` law at gcc dot gnu.org
@ 2014-05-09 17:02 ` tejohnson at google dot com
2014-05-09 17:09 ` ppluzhnikov at google dot com
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: tejohnson at google dot com @ 2014-05-09 17:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #13 from Teresa Johnson <tejohnson at google dot com> ---
Jeff,
Thanks for the fix! Confirming that it does indeed fix the application
issues we hit.
Teresa
On Thu, May 8, 2014 at 9:54 PM, law at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
>
> --- Comment #11 from Jeffrey A. Law <law at gcc dot gnu.org> ---
> Author: law
> Date: Fri May 9 04:54:00 2014
> New Revision: 210254
>
> URL: http://gcc.gnu.org/viewcvs?rev=210254&root=gcc&view=rev
> Log:
> 2014-05-08 Jeff Law <law@redhat.com>
>
> PR tree-optimization/61009
> * tree-ssa-threadedge.c (thread_through_normal_block): Return a
> tri-state rather than a boolean. When a block is too big to
> thread through, inform caller via negative return value.
> (thread_across_edge): If a block was too big for normal threading,
> then it's too big for a joiner too, so remove temporary equivalences
> and return immediately.
>
> PR tree-optimization/61009
> * g++.dg/tree-ssa/pr61009.C: New test.
>
> Added:
> trunk/gcc/testsuite/g++.dg/tree-ssa/pr61009.C
> Modified:
> trunk/gcc/ChangeLog
> trunk/gcc/testsuite/ChangeLog
> trunk/gcc/tree-ssa-threadedge.c
>
> --
> You are receiving this mail because:
> You reported the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] [4.9 Regression] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (11 preceding siblings ...)
2014-05-09 17:02 ` [Bug tree-optimization/61009] [4.9 Regression] " tejohnson at google dot com
@ 2014-05-09 17:09 ` ppluzhnikov at google dot com
2014-05-09 17:22 ` law at redhat dot com
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: ppluzhnikov at google dot com @ 2014-05-09 17:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #14 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
(In reply to Teresa Johnson from comment #13)
> Thanks for the fix!
Indeed.
> Confirming that it does indeed fix the application
> issues we hit.
I will add that we've had at least two separate miscompile instances due to
this bug, resulting in several thousand of our unit test failing.
Back-porting this to gcc-4_9-branch should be a relatively high priority.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] [4.9 Regression] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (12 preceding siblings ...)
2014-05-09 17:09 ` ppluzhnikov at google dot com
@ 2014-05-09 17:22 ` law at redhat dot com
2014-05-13 20:27 ` law at gcc dot gnu.org
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: law at redhat dot com @ 2014-05-09 17:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #15 from Jeffrey A. Law <law at redhat dot com> ---
Paul, it is. I'd be surprised if both threading fixes aren't in by Monday.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] [4.9 Regression] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (13 preceding siblings ...)
2014-05-09 17:22 ` law at redhat dot com
@ 2014-05-13 20:27 ` law at gcc dot gnu.org
2014-05-13 20:29 ` law at redhat dot com
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: law at gcc dot gnu.org @ 2014-05-13 20:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #16 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Tue May 13 20:26:51 2014
New Revision: 210400
URL: http://gcc.gnu.org/viewcvs?rev=210400&root=gcc&view=rev
Log:
2014-05-08 Jeff Law <law@redhat.com>
PR tree-optimization/61009
* tree-ssa-threadedge.c (thread_through_normal_block): Return a
tri-state rather than a boolean. When a block is too big to
thread through, inform caller via negative return value.
(thread_across_edge): If a block was too big for normal threading,
then it's too big for a joiner too, so remove temporary equivalences
and return immediately.
PR tree-optimization/61009
* g++.dg/tree-ssa/pr61009.C: New test.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/tree-ssa/pr61009.C
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-ssa-threadedge.c
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] [4.9 Regression] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (14 preceding siblings ...)
2014-05-13 20:27 ` law at gcc dot gnu.org
@ 2014-05-13 20:29 ` law at redhat dot com
2014-06-12 17:13 ` law at gcc dot gnu.org
2014-06-12 18:39 ` law at gcc dot gnu.org
17 siblings, 0 replies; 19+ messages in thread
From: law at redhat dot com @ 2014-05-13 20:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #17 from Jeffrey A. Law <law at redhat dot com> ---
Fix backported to branch.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] [4.9 Regression] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (15 preceding siblings ...)
2014-05-13 20:29 ` law at redhat dot com
@ 2014-06-12 17:13 ` law at gcc dot gnu.org
2014-06-12 18:39 ` law at gcc dot gnu.org
17 siblings, 0 replies; 19+ messages in thread
From: law at gcc dot gnu.org @ 2014-06-12 17:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #18 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Thu Jun 12 17:12:18 2014
New Revision: 211586
URL: http://gcc.gnu.org/viewcvs?rev=211586&root=gcc&view=rev
Log:
PR tree-optimization/61009
* tree-ssa-threadedge.c (thread_through_normal_block): Correct return
value when we stop processing a block due to problematic PHIs.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-ssa-threadedge.c
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug tree-optimization/61009] [4.9 Regression] Incorrect jump threading in dom
2014-04-29 21:33 [Bug tree-optimization/61009] New: Incorrect jump threading in dom tejohnson at google dot com
` (16 preceding siblings ...)
2014-06-12 17:13 ` law at gcc dot gnu.org
@ 2014-06-12 18:39 ` law at gcc dot gnu.org
17 siblings, 0 replies; 19+ messages in thread
From: law at gcc dot gnu.org @ 2014-06-12 18:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
--- Comment #19 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Thu Jun 12 18:38:29 2014
New Revision: 211589
URL: http://gcc.gnu.org/viewcvs?rev=211589&root=gcc&view=rev
Log:
PR tree-optimization/61009
* tree-ssa-threadedge.c (thread_through_normal_block): Correct return
value when we stop processing a block due to problematic PHIs.
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/tree-ssa-threadedge.c
^ permalink raw reply [flat|nested] 19+ messages in thread