public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17141] New: *&a->b is not folded
@ 2004-08-23  4:10 pinskia at gcc dot gnu dot org
  2004-08-23  4:49 ` [Bug tree-optimization/17141] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-23  4:10 UTC (permalink / raw)
  To: gcc-bugs

struct A { int i; };
int
foo(struct A *locp, int str)
{
  int T355, *T356;
  T356 = &locp->i;
  *T356 = str;
  return locp->i;
}

-- 
           Summary: *&a->b is not folded
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, TREE
          Severity: enhancement
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug tree-optimization/17141] *&a->b is not folded
  2004-08-23  4:10 [Bug tree-optimization/17141] New: *&a->b is not folded pinskia at gcc dot gnu dot org
@ 2004-08-23  4:49 ` pinskia at gcc dot gnu dot org
  2004-08-23  6:56 ` steven at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-23  4:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-23 04:49 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-23 04:49:30
               date|                            |


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


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

* [Bug tree-optimization/17141] *&a->b is not folded
  2004-08-23  4:10 [Bug tree-optimization/17141] New: *&a->b is not folded pinskia at gcc dot gnu dot org
  2004-08-23  4:49 ` [Bug tree-optimization/17141] " pinskia at gcc dot gnu dot org
@ 2004-08-23  6:56 ` steven at gcc dot gnu dot org
  2004-08-23 12:41 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-08-23  6:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-08-23 06:56 -------
Apparently something else _is_ folded.  And a bit early too.  We've already 
dropped to "T356<D1123> = (int<D0> *)locp<D1118>" even before gimplifying. 

-- 


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


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

* [Bug tree-optimization/17141] *&a->b is not folded
  2004-08-23  4:10 [Bug tree-optimization/17141] New: *&a->b is not folded pinskia at gcc dot gnu dot org
  2004-08-23  4:49 ` [Bug tree-optimization/17141] " pinskia at gcc dot gnu dot org
  2004-08-23  6:56 ` steven at gcc dot gnu dot org
@ 2004-08-23 12:41 ` pinskia at gcc dot gnu dot org
  2004-09-01 16:29 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-23 12:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-23 12:41 -------
Actually I just fixed that yesterday.

-- 


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


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

* [Bug tree-optimization/17141] *&a->b is not folded
  2004-08-23  4:10 [Bug tree-optimization/17141] New: *&a->b is not folded pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-08-23 12:41 ` pinskia at gcc dot gnu dot org
@ 2004-09-01 16:29 ` pinskia at gcc dot gnu dot org
  2004-09-11  1:16 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-01 16:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-01 16:29 -------
Mine, I have a simple pass which does this.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug tree-optimization/17141] *&a->b is not folded
  2004-08-23  4:10 [Bug tree-optimization/17141] New: *&a->b is not folded pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-09-01 16:29 ` pinskia at gcc dot gnu dot org
@ 2004-09-11  1:16 ` pinskia at gcc dot gnu dot org
  2004-09-21  2:41 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-11  1:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-11 01:16 -------
Actually I got my tree combiner to do the work for me.

-- 


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


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

* [Bug tree-optimization/17141] *&a->b is not folded
  2004-08-23  4:10 [Bug tree-optimization/17141] New: *&a->b is not folded pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-09-11  1:16 ` pinskia at gcc dot gnu dot org
@ 2004-09-21  2:41 ` pinskia at gcc dot gnu dot org
  2005-03-23 20:10 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-21  2:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-21 02:41 -------
This shows up in PR 8361.

-- 


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


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

* [Bug tree-optimization/17141] *&a->b is not folded
  2004-08-23  4:10 [Bug tree-optimization/17141] New: *&a->b is not folded pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-09-21  2:41 ` pinskia at gcc dot gnu dot org
@ 2005-03-23 20:10 ` pinskia at gcc dot gnu dot org
  2005-05-17 16:39 ` law at redhat dot com
  2005-06-05  7:52 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-23 20:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-23 20:10 -------
And here is a testcase for a missed optimization on the TREE level:
void abort (void);
struct a
{
  int i;
} *a;
int f(void)
{
  int *ii = &a->i;
  void *l;
  a->i = 1;
  if (*ii)
   l = &&l1;
  else
   l = &&l2;
  goto *l;
l1:
  return 0;
l2:
  abort ();
}

-- 


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


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

* [Bug tree-optimization/17141] *&a->b is not folded
  2004-08-23  4:10 [Bug tree-optimization/17141] New: *&a->b is not folded pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-03-23 20:10 ` pinskia at gcc dot gnu dot org
@ 2005-05-17 16:39 ` law at redhat dot com
  2005-06-05  7:52 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 11+ messages in thread
From: law at redhat dot com @ 2005-05-17 16:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From law at redhat dot com  2005-05-17 16:39 -------
Fixed with this patch:

http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01726.html



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


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


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

* [Bug tree-optimization/17141] *&a->b is not folded
  2004-08-23  4:10 [Bug tree-optimization/17141] New: *&a->b is not folded pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-05-17 16:39 ` law at redhat dot com
@ 2005-06-05  7:52 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-05  7:52 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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


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

* [Bug tree-optimization/17141] *&a->b is not folded
       [not found] <bug-17141-4@http.gcc.gnu.org/bugzilla/>
@ 2014-10-31  4:02 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-10-31  4:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17141
Bug 17141 depends on bug 15459, which changed state.

Bug 15459 Summary: [meta-bug] there should be a tree combiner like the rtl one
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15459

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


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

end of thread, other threads:[~2014-10-31  4:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-23  4:10 [Bug tree-optimization/17141] New: *&a->b is not folded pinskia at gcc dot gnu dot org
2004-08-23  4:49 ` [Bug tree-optimization/17141] " pinskia at gcc dot gnu dot org
2004-08-23  6:56 ` steven at gcc dot gnu dot org
2004-08-23 12:41 ` pinskia at gcc dot gnu dot org
2004-09-01 16:29 ` pinskia at gcc dot gnu dot org
2004-09-11  1:16 ` pinskia at gcc dot gnu dot org
2004-09-21  2:41 ` pinskia at gcc dot gnu dot org
2005-03-23 20:10 ` pinskia at gcc dot gnu dot org
2005-05-17 16:39 ` law at redhat dot com
2005-06-05  7:52 ` pinskia at gcc dot gnu dot org
     [not found] <bug-17141-4@http.gcc.gnu.org/bugzilla/>
2014-10-31  4:02 ` pinskia 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).