Fix PR24469 resulting from r245025 and re-enable dead store elimination across basicb...