This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
DSE optimization
- From: Hendrik Greving <hendrik dot greving dot intel at gmail dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 19 Aug 2013 14:21:25 -0700
- Subject: 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