@@ -337,21 +337,17 @@ static void promote_symbol(struct entrypoint *ep, struct symbol *sym)
} END_FOR_EACH_PTR_REVERSE(pu);
/* If we converted all the loads, remove the stores. They are dead */
- if (all && !mod) {
+ if (all && !mod)
return kill_pseudo_stores(pseudo);
- } else {
- /*
- * If we couldn't take the shortcut, see if we can at least kill some
- * of them..
- */
- kill_pseudo_dominated_stores(pseudo, !mod);
-
- if (!(mod & (MOD_NONLOCAL | MOD_STATIC))) {
- kill_pseudo_dead_stores(ep, pseudo, !mod);
- }
- }
- return;
+ /*
+ * If we couldn't take the shortcut, see if we can at least kill some
+ * of them..
+ */
+ kill_pseudo_dominated_stores(pseudo, !mod);
+
+ if (!(mod & (MOD_NONLOCAL | MOD_STATIC)))
+ kill_pseudo_dead_stores(ep, pseudo, !mod);
}
void promote_symbols_usage(struct entrypoint *ep)