Put the vstore() call that marks a no-longer-stored value as unknown
above the optimizer loop detection hack code, to keep the hack code more
clearly separated.
Add a comment indicating a reason for the vstore() call.
for (atom = 0; atom < N_ATOMS; ++atom)
if (last[atom] && !ATOMELEM(b->out_use, atom)) {
last[atom]->code = NOP;
+ /*
+ * The store was removed as it's dead,
+ * so the value stored into now has
+ * an unknown value.
+ */
+ vstore(0, &b->val[atom], VAL_UNKNOWN, 0);
/*
* XXX - optimizer loop detection.
*/
opt_state->non_branch_movement_performed = 1;
opt_state->done = 0;
- vstore(0, &b->val[atom], VAL_UNKNOWN, 0);
}
}