This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

DSE optimization


The optimization checks when replacing st->ld with a shift sequence,
whether the seuqence's costs are cost > COSTS_N_INSNS (1), and then
*keeps* the st->ld otherwise. See dse.c:1864 (GCC 4.8.1 release).

Isn't COSTS_N_INSN(1) a little low? Also, wouldn't it be better to
check for cost > cost_of_store instead of the 'fixed' cost==1?

Regard,
Thanks,
Hendrik Greving


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]