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

--- Comment #3 from Lvfan Yang <lyfanyang at smail dot nju.edu.cn> ---
Created attachment 66330
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66330&action=edit
hog.c

Correction to my earlier measurements and testcase.

1) The "Known to work: 9.4.0, 16.2.0" in the original report was wrong — my
timing
   script had a bug (it timed a "command not found" as 0.00s). Measured
correctly,
   the -O3 -c time is:

       9.4.0              ~1.9 s
       16.2.0             ~3.6 s
       17.0 (20261108)    ~6.4 s

   (vs -O2 -c: ~0.1-0.3 s on all three, so -O3 is ~20x -O2.)

2) The first attached testcase was missing main() (my reduction script only
checked
   -c, not linking). I am attaching a corrected, clean 121-line testcase that
   compiles, links, and runs, and is clean under -fsanitize=address,undefined.

-ftime-report at -O3 shows the time is in RTL expansion, not the vectorizer:

   callgraph functions expansion : 6.29 s (99%)
     alias stmt walking         : 3.78 s (60%)
     tree vectorization         : 0.20 s ( 3%)

Reply via email to