[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-05-08 Thread law at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

--- Comment #11 from Jeffrey A. Law  ---
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  

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


[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-05-08 Thread xinliangli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

--- Comment #10 from davidxl  ---
(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


[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-05-08 Thread law at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

--- Comment #9 from Jeffrey A. Law  ---
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.


[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-05-07 Thread xinliangli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

davidxl  changed:

   What|Removed |Added

 CC||xinliangli at gmail dot com

--- Comment #8 from davidxl  ---
(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


[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-04-30 Thread law at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

--- Comment #7 from Jeffrey A. Law  ---
I see what's happening here...  I need to think about how best to handle this
situation.  Oh how threading across loop backedges perilous.


[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-04-30 Thread law at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

Jeffrey A. Law  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-04-30
 Ever confirmed|0   |1


[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-04-29 Thread tejohnson at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

--- Comment #6 from Teresa Johnson  ---
On Tue, Apr 29, 2014 at 2:46 PM, ppluzhnikov at google dot com
 wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009
>
> --- Comment #4 from Paul Pluzhnikov  ---
> (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.


[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-04-29 Thread law at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

Jeffrey A. Law  changed:

   What|Removed |Added

 CC||law at redhat dot com

--- Comment #5 from Jeffrey A. Law  ---
I really doubt this is related to 60902.


[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-04-29 Thread ppluzhnikov at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

--- Comment #4 from Paul Pluzhnikov  ---
(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?


[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-04-29 Thread ppluzhnikov at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

Paul Pluzhnikov  changed:

   What|Removed |Added

 CC||ppluzhnikov at google dot com

--- Comment #3 from Paul Pluzhnikov  ---
Google ref: b/14380607


[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-04-29 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

--- Comment #2 from Andrew Pinski  ---
Most likely related to bug 60902.


[Bug tree-optimization/61009] Incorrect jump threading in dom

2014-04-29 Thread tejohnson at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61009

--- Comment #1 from Teresa Johnson  ---
Created attachment 32710
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32710&action=edit
t.C.078t.dom1