On 11/27/2013 01:25 PM, Iyer, Balaji V wrote:
I think a better approach would be to add a cp_build_cilk_spawn that uses
stabilize_call to pre-evaluate the arguments of the call.
I really can't pre-evaluate the calls before I move into the nested function
because all those parts must be in the nested function.
OK, then use stabilize_expr to pre-evaluate just the function, to get
the effect of your earlier cilk_create_lambda_fn_tmp_var without the
undesirable lifetime effects.
Adding another hook seem to be straightforward for me.
It's straightforward but undesirable; we want to minimize the number of
hooks, and this one is unnecessary.
Jason