http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53640
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WORKSFORME --- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-12 09:29:10 UTC --- cond_if_else_store_replacement should do this, thus cselim. But you need -O3 as otherwise --param max-stores-to-sink is zero: /* Set PARAM_MAX_STORES_TO_SINK to 0 if either vectorization or if-conversion is disabled. */ if (!opts->x_flag_tree_vectorize || !opts->x_flag_tree_loop_if_convert) maybe_set_param_value (PARAM_MAX_STORES_TO_SINK, 0, opts->x_param_values, opts_set->x_param_values);