Avoids DCE on write_register