[Bug middle-end/38204] PRE for post dominating expressions

2008-12-01 Thread steven at gcc dot gnu dot org
--- Comment #4 from steven at gcc dot gnu dot org 2008-12-01 22:12 --- davidxl, my latest patch to bug 23286 (tree-hoist_v3.diff) makes PRE in tree-ssa-pre.c code-size aware. I have tested this with CSiBE on mips-unknown-elf. Without the patch, code size at -Os with PRE enabled is ~17%

[Bug middle-end/38204] PRE for post dominating expressions

2008-11-21 Thread davidxl at gcc dot gnu dot org
--- Comment #3 from davidxl at gcc dot gnu dot org 2008-11-22 00:35 --- (In reply to comment #2) > (In reply to comment #0) > > For this function: > > int test (int a, int b, int c, int g) > > { > > int d, e; > > if (a) > > d = b * c; > > else > > d = b - c; > > e = b * c

[Bug middle-end/38204] PRE for post dominating expressions

2008-11-21 Thread dberlin at gcc dot gnu dot org
--- Comment #2 from dberlin at gcc dot gnu dot org 2008-11-21 16:55 --- (In reply to comment #0) > For this function: > int test (int a, int b, int c, int g) > { > int d, e; > if (a) > d = b * c; > else > d = b - c; > e = b * c + g; > return d + e; > } > > the multiply

[Bug middle-end/38204] PRE for post dominating expressions

2008-11-20 Thread steven at gcc dot gnu dot org
--- Comment #1 from steven at gcc dot gnu dot org 2008-11-21 06:41 --- *** This bug has been marked as a duplicate of 23286 *** -- steven at gcc dot gnu dot org changed: What|Removed |Added