Re: [PATCH, PR ipa/71633] Fix inlining into thunks

2016-07-12 Thread Richard Biener
On Mon, Jul 11, 2016 at 12:22 PM, Ilya Enkovich wrote: > Hi, > > Currently when we expand thunk in inliner we assume its body > has a single call. This is wrong for cases when thunk is > instrumented. It means we might try to continue inlining > for wrong edge. This simple patch fixes it. > > B

[PATCH, PR ipa/71633] Fix inlining into thunks

2016-07-11 Thread Ilya Enkovich
Hi, Currently when we expand thunk in inliner we assume its body has a single call. This is wrong for cases when thunk is instrumented. It means we might try to continue inlining for wrong edge. This simple patch fixes it. Bootstrapped and regtested on x86_64-unknown-linux-gnu. OK for trunk?