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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.07.07 09:22:08
          Component|other                       |tree-optimization
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-07-07 
09:22:08 UTC ---
We don't know how to "devirtualize" trampolines.  In fact trampoline setup
isn't very SSA analyzer friendly (look at the hoops IPA points-to analysis
jumps through).  We end up with

<bb 2>:
  __builtin_init_trampoline (&FRAME.0.g, g, &FRAME.0);
  FRAME.0.m = 0;
  D.3251_20 = n;
  printf (&"%d\n"[0], D.3251_20);
  D.3230_3 = __builtin_adjust_trampoline (&FRAME.0.g);
  D.3231_4 = (int (*<T50a>) (void)) D.3230_3;
  D.3245_18 = D.3231_4 ();
  printf (&"%d\n"[0], D.3245_18);

Now we could "devirtualize" the above based on the fact the trampoline
doesn't escape.

Reply via email to