You need to use the values to ensure that compiler does not remove the code. Even if the compiler does not do this, your Intel CPU will, if effectively runs an ssa implementation in hardware and will spot the dead stores and skip the load.
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.