[Bug tree-optimization/69196] code size regression with jump threading at -O2

2016-01-11 Thread sebastian.hu...@embedded-brains.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69196

--- Comment #4 from Sebastian Huber  ---
I did a very rough check to see which code is faster on the PSIM/GDB simulator
using the following input data:

void printk(const char *fmt, ...)
{
  va_list ap;

  va_start(ap, fmt);
  vprintk(fmt, ap);
  va_end(ap);
}

void test(void)
{
  char *s = "x";
  printk("abc%sx%ix%cx%lu\n", s, 0, 'c', 1UL);
}

GCC 4.9: 311 time units

GCC 6: 316 time units

I guess its quite difficult to determine if this target independent code size
increase is actually a regression in general.  At least in this particular
function with this particular input data on this particular target/simulator
the code size is nearly doubled and the execution is slightly slower.

[Bug tree-optimization/69196] code size regression with jump threading at -O2

2016-01-09 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69196

Eric Botcazou  changed:

   What|Removed |Added

 Target|sparc   |
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-01-09
 CC||ebotcazou at gcc dot gnu.org
  Component|target  |tree-optimization
Summary|Code size regression on |code size regression with
   |SPARC   |jump threading at -O2
 Ever confirmed|0   |1

--- Comment #3 from Eric Botcazou  ---
Not target specific.