Re: [PATCH] Simplify SCEV entry

2017-10-11 Thread Andreas Schwab
On Okt 10 2017, Richard Biener wrote: > * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Avoid compacting > blocks if SCEV is active. > * tree-scalar-evolution.c (analyze_scalar_evolution_1): Remove > dead code. > (analyze_scalar_evolution): Handle cached evolutions th

[PATCH] Simplify SCEV entry

2017-10-10 Thread Richard Biener
This simplifies SCEV analyze_scalar_evolution_1 by removing what appeared to be dead code for the case of res != chrec_not_analyzed_yet. Adding a gcc_unrechable () turned up a rather serious bug though as in the loop pipeline we get a messed up SCEV cache if CFG cleanup renumbers blocks given SC