Fix opt_deadstores in the optimizer to update the block val data structure with VAL_UNKNOWN when NOP'ing a dead store instruction. Otherwise, a successor block may assume that value is still available. See test case here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=144325.
*/
opt_state->non_branch_movement_performed = 1;
opt_state->done = 0;
+ vstore(0, &b->val[atom], VAL_UNKNOWN, 0);
}
}