public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/30930]  New: [4.3 Regression] vector can cause to create an extra variable
@ 2007-02-22 21:53 pinskia at gcc dot gnu dot org
  2007-02-22 23:12 ` [Bug tree-optimization/30930] " pinskia at gcc dot gnu dot org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-22 21:53 UTC (permalink / raw)
  To: gcc-bugs

While trying to make DECL_GIMPLE_REG_P more generic, I ran into a regression
due to we never change non gimple register variables into gimple registers so I
looked into it and found that I could also reproduce it in the current sources
with vector types (complex does not matter as much as they are always SRA'd).
Testcase:
#define vector __attribute__(( vector_size(16) ))

vector float f(vector float a, int b, vector float c)
{
  vector float dd = c*a;
  if (0)
  {
   vector float *d = &a;
   vector float *d1 = &c;
    g:;
  }
  if (b)
    return dd * a;
  return c*a;
}


You will see that a is never turned into a gimple register which could cause
some issues with debugging info and also this introduces an extra variable
which could cause a memory usage/compile time slow down.


-- 
           Summary: [4.3 Regression] vector can cause to create an extra
                    variable
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-04-20 13:27 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-22 21:53 [Bug tree-optimization/30930] New: [4.3 Regression] vector can cause to create an extra variable pinskia at gcc dot gnu dot org
2007-02-22 23:12 ` [Bug tree-optimization/30930] " pinskia at gcc dot gnu dot org
2007-02-23  9:56 ` rguenth at gcc dot gnu dot org
2007-02-23 22:48 ` pinskia at gcc dot gnu dot org
2007-06-29 17:58 ` mmitchel at gcc dot gnu dot org
2008-01-13 14:56 ` [Bug tree-optimization/30930] [4.3 Regression] vector can cause to create an extra variable, DECL_GIMPLE_REG_P not recomputed rguenth at gcc dot gnu dot org
2008-01-13 18:17 ` pinskia at gcc dot gnu dot org
2008-03-15  0:44 ` [Bug tree-optimization/30930] [4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-06-06 14:58 ` rguenth at gcc dot gnu dot org
2008-08-27 22:03 ` jsm28 at gcc dot gnu dot org
2008-09-17 22:29 ` pinskia at gcc dot gnu dot org
2008-09-17 22:42 ` pinskia at gcc dot gnu dot org
2008-09-17 22:51 ` pinskia at gcc dot gnu dot org
2008-09-18  1:01 ` pinskia at gcc dot gnu dot org
2008-09-18  8:24 ` rguenther at suse dot de
2008-09-19 22:25 ` [Bug tree-optimization/30930] [4.3 " pinskia at gcc dot gnu dot org
2008-09-19 22:26 ` pinskia at gcc dot gnu dot org
2009-01-24 10:40 ` rguenth at gcc dot gnu dot org
2009-04-16 15:42 ` pinskia at gcc dot gnu dot org
2009-04-22 15:13 ` rguenth at gcc dot gnu dot org
2009-08-04 12:35 ` rguenth at gcc dot gnu dot org
2010-04-20 13:27 ` rguenth 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).