ok for google branches -- LTO specific bugs should be isolated and submitted upstream.
David http://codereview.appspot.com/6306054/diff/5001/value-prof.c File value-prof.c (right): http://codereview.appspot.com/6306054/diff/5001/value-prof.c#newcode1720 value-prof.c:1720: direct_call2 = 0; Ok for now -- but it may point to missing opportunties. http://codereview.appspot.com/6306054/diff/5001/value-prof.c#newcode1728 value-prof.c:1728: ret = (icall_promotion_info_t *) XNEW (icall_promotion_info_t); XNEWC here http://codereview.appspot.com/6306054/