Re: [patch] PR51477

2012-11-12 Thread Richard Henderson
On 11/12/2012 01:04 AM, Steven Bosscher wrote: > gcc/ > PR rtl-optimization/51447 > * df-scan.c (df_get_entry_block_def_set): Add global regs to the set. > * df-problems.c (df_lr_local_compute): Make global regs always live. > * dce.c (deletable_insn_p): Make insns setting a

[patch] PR51477

2012-11-12 Thread Steven Bosscher
Hello, In this PR, a set to a global reg is removed by fast-dce and ud-dce. Such sets should always be preserved. The proposed fix is to make global regs always live. This is done in the df-* parts of the patch from Jakub (the test case is also his). In addition, ud-dce should consider sets of gl