Re: [PATCH] Fix PR54782

2012-10-03 Thread Jakub Jelinek
On Wed, Oct 03, 2012 at 01:09:27PM -0700, Dehao Chen wrote: > Thanks for the comments. The patch was updated as attached. Ok, thanks. Jakub

Re: [PATCH] Fix PR54782

2012-10-03 Thread Dehao Chen
Thanks for the comments. The patch was updated as attached. Dehao On Wed, Oct 3, 2012 at 11:46 AM, Jakub Jelinek wrote: > On Wed, Oct 03, 2012 at 11:26:09AM -0700, Dehao Chen wrote: >> @@ -6340,6 +6341,20 @@ move_block_to_fn (struct function *dest_cfun, basi >> SET_USE (use, replace_ss

Re: [PATCH] Fix PR54782

2012-10-03 Thread Jakub Jelinek
On Wed, Oct 03, 2012 at 11:26:09AM -0700, Dehao Chen wrote: > @@ -6340,6 +6341,20 @@ move_block_to_fn (struct function *dest_cfun, basi > SET_USE (use, replace_ssa_name (op, d->vars_map, dest_cfun->decl)); > } > > + for (i = 0; i < EDGE_COUNT (bb->preds); i++) > + { > +

[PATCH] Fix PR54782

2012-10-03 Thread Dehao Chen
Hi, Attached patch fixes PR54782. phi_arg_location is not correctly updated in move_block_to_fn. This patch fixes the problem. Bootstrapped and passed gcc regression tests on x86. Okay for trunk? Thanks, Dehao gcc/ChangeLog: 2012-10-03 Dehao Chen PR middle-end/54782 * tree-cfg.c (move_bloc