Use proper has_side_effect check for local dce.