public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/30049] Variable-length arrays (VLA) should be converted to normal arrays if possible
       [not found] <bug-30049-4@http.gcc.gnu.org/bugzilla/>
@ 2023-08-04 19:40 ` pinskia at gcc dot gnu.org
  2023-08-04 19:46 ` pinskia at gcc dot gnu.org
  2023-08-07  8:46 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-04 19:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30049

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 55690
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55690&action=edit
testcase

[apinski@xeond2 upstream-gcc-git]$ ~/upstream-gcc/bin/gcc  t.c -march=opteron
-ffast-math -funroll-loops -ftree-vectorize -msse3 -O3 -g
[apinski@xeond2 upstream-gcc-git]$ time ./a.out
real    0m1.522s
user    0m1.517s
sys     0m0.001s
[apinski@xeond2 upstream-gcc-git]$ ~/upstream-gcc/bin/gcc  t.c -march=opteron
-ffast-math -funroll-loops -ftree-vectorize -msse3 -O3 -g -DNORMAL_ARRAY
[apinski@xeond2 upstream-gcc-git]$ time ./a.out
real    0m0.356s
user    0m0.352s
sys     0m0.002s

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

* [Bug tree-optimization/30049] Variable-length arrays (VLA) should be converted to normal arrays if possible
       [not found] <bug-30049-4@http.gcc.gnu.org/bugzilla/>
  2023-08-04 19:40 ` [Bug tree-optimization/30049] Variable-length arrays (VLA) should be converted to normal arrays if possible pinskia at gcc dot gnu.org
@ 2023-08-04 19:46 ` pinskia at gcc dot gnu.org
  2023-08-07  8:46 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-04 19:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30049

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The only difference I saw is scheduling and some small IV-OPTs difference ...

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

* [Bug tree-optimization/30049] Variable-length arrays (VLA) should be converted to normal arrays if possible
       [not found] <bug-30049-4@http.gcc.gnu.org/bugzilla/>
  2023-08-04 19:40 ` [Bug tree-optimization/30049] Variable-length arrays (VLA) should be converted to normal arrays if possible pinskia at gcc dot gnu.org
  2023-08-04 19:46 ` pinskia at gcc dot gnu.org
@ 2023-08-07  8:46 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-08-07  8:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30049

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsm28 at gcc dot gnu.org

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
The specific case with a const int NODES might be also something the frontend
is allowed to optimize?  Still the case where constant propagation can figure
out the bound could be optimized.  I'll note that using a VLA can sometimes
reduce
stack usage.

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

* [Bug tree-optimization/30049] Variable-length arrays (VLA) should be converted to normal arrays if possible
  2006-12-02 10:30 [Bug c/30049] New: " burnus at gcc dot gnu dot org
  2006-12-02 17:02 ` [Bug tree-optimization/30049] " pinskia at gcc dot gnu dot org
@ 2006-12-02 22:25 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-02 22:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-12-02 22:25 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-12-02 22:25:12
               date|                            |


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


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

* [Bug tree-optimization/30049] Variable-length arrays (VLA) should be converted to normal arrays if possible
  2006-12-02 10:30 [Bug c/30049] New: " burnus at gcc dot gnu dot org
@ 2006-12-02 17:02 ` pinskia at gcc dot gnu dot org
  2006-12-02 22:25 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-02 17:02 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
          Component|c                           |tree-optimization


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


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

end of thread, other threads:[~2023-08-07  8: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-30049-4@http.gcc.gnu.org/bugzilla/>
2023-08-04 19:40 ` [Bug tree-optimization/30049] Variable-length arrays (VLA) should be converted to normal arrays if possible pinskia at gcc dot gnu.org
2023-08-04 19:46 ` pinskia at gcc dot gnu.org
2023-08-07  8:46 ` rguenth at gcc dot gnu.org
2006-12-02 10:30 [Bug c/30049] New: " burnus at gcc dot gnu dot org
2006-12-02 17:02 ` [Bug tree-optimization/30049] " pinskia at gcc dot gnu dot org
2006-12-02 22:25 ` 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).