cmd/compile: fix deallocation of live value copies in regalloc
cmd/compile: fix deallocation of live value copies in regalloc

When deallocating the input register to a phi so that the phi
itself could be allocated to that register the code was also
deallocating all copies of that phi input value. Those copies
of the value could still be live and if they were the register
allocator could reuse them incorrectly to hold speculative
copies of other phi inputs. This causes strange bugs.

No test because this is a very obscure scenario that is hard
to replicate but CL 228060 adds an assertion to the compiler
that does trigger when running the std tests on linux/s390x
without this CL applied. Hopefully that assertion will prevent
future regressions.

Fixes #38195.

Change-Id: Id975dadedd731c7bb21933b9ea6b17daaa5c9e1d
Reviewed-on: https://go-review.googlesource.com/c/go/+/228061
Run-TryBot: Michael Munday <19411bdeea90f848b8e02e9a1c63a7ce7cc699ea@ibm.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Keith Randall <8c99c3a9284e493be632950b84cd789d08ed3e9d@golang.org>

akutz/go,akutz/go,cloudflare/go,CAFxX/go,akutz/go,CAFxX/go,cloudflare/go,akutz/go,cloudflare/go,cloudflare/go,golang/go,nawawi/go,nawawi/go,CAFxX/go,golang/go,golang/go,nawawi/go,cloudflare/go,akutz/go,golang/go,cloudflare/go,akutz/go,nawawi/go,nawawi/go,golang/go,CAFxX/go,cloudflare/go,nawawi/go,nawawi/go,golang/go,cloudflare/go,akutz/go,CAFxX/go,CAFxX/go,golang/go,golang/go,CAFxX/go,akutz/go,CAFxX/go,nawawi/go