public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/49442] New: [4.5/4.6/4.7 Regression] Misaligned store support pessimization
@ 2011-06-16 14:57 jakub at gcc dot gnu.org
  2011-06-16 15:23 ` [Bug tree-optimization/49442] " rguenth at gcc dot gnu.org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-06-16 14:57 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.5/4.6/4.7 Regression] Misaligned store support
                    pessimization
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org
                CC: irar@gcc.gnu.org, revitale@gcc.gnu.org
            Target: x86_64-linux


__attribute__((noinline, noclone))
void baz (double *out1, double *out2, double *out3, double *in1, double *in2,
int len)
{
  for (int i = 0; i < len; ++i)
    {
      out1[i] = in1[i] * in2[i];
      out2[i] = in1[i] + in2[i];
      out3[i] = in1[i] - in2[i];
    }
}

double a[50000] __attribute__((aligned (32)));
int
main ()
{
  int i;
  for (i = 0; i < 500000; i++)
    baz (a + 0, a + 10000, a + 20000, a + 30000, a + 40000, 10000);
  return 0;
}

is measurably slower in 4.6 compared to 4.4 with -m64 -O3 -mtune=generic,
apparently starting with
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148211
at least on Intel CPUs.
with r148210:
Strip out best and worst realtime result
minimum: 6.603036509 sec real / 0.000086529 sec CPU
maximum: 6.720307841 sec real / 0.000159148 sec CPU
average: 6.629486345 sec real / 0.000133896 sec CPU
stdev  : 0.024886889 sec real / 0.000020014 sec CPU
with r148211:
Strip out best and worst realtime result
minimum: 6.969550715 sec real / 0.000072647 sec CPU
maximum: 7.564913575 sec real / 0.000162211 sec CPU
average: 7.192333688 sec real / 0.000135634 sec CPU
stdev  : 0.101616835 sec real / 0.000022659 sec CPU


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

end of thread, other threads:[~2023-07-07 10:29 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16 14:57 [Bug tree-optimization/49442] New: [4.5/4.6/4.7 Regression] Misaligned store support pessimization jakub at gcc dot gnu.org
2011-06-16 15:23 ` [Bug tree-optimization/49442] " rguenth at gcc dot gnu.org
2011-06-16 15:24 ` rguenth at gcc dot gnu.org
2011-06-16 16:33 ` jakub at gcc dot gnu.org
2011-06-17  8:16 ` jakub at gcc dot gnu.org
2011-06-19  8:25 ` irar at il dot ibm.com
2011-06-21 12:43 ` jakub at gcc dot gnu.org
2011-06-21 12:51 ` jakub at gcc dot gnu.org
2011-06-21 12:53 ` jakub at gcc dot gnu.org
2011-06-30 13:57 ` jakub at gcc dot gnu.org
2011-08-01 14:04 ` rguenth at gcc dot gnu.org
2012-07-02 11:16 ` [Bug tree-optimization/49442] [4.5/4.6/4.7/4.8 " rguenth at gcc dot gnu.org
2013-04-12 15:17 ` [Bug tree-optimization/49442] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
2014-06-12 13:47 ` [Bug tree-optimization/49442] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-19 13:41 ` [Bug tree-optimization/49442] [4.8/4.9/5 " jakub at gcc dot gnu.org
2015-06-23  8:24 ` [Bug tree-optimization/49442] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 20:16 ` [Bug tree-optimization/49442] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:37 ` jakub at gcc dot gnu.org
2021-05-14  9:46 ` [Bug tree-optimization/49442] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01  8:05 ` rguenth at gcc dot gnu.org
2022-05-27  9:34 ` [Bug tree-optimization/49442] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:30 ` jakub at gcc dot gnu.org
2023-07-07 10:29 ` [Bug tree-optimization/49442] [11/12/13/14 " rguenth 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).