cmd/compile: remove duplicates by using finishcompare
cmd/compile: remove duplicates by using finishcompare

Updates #23834

Change-Id: If05001f9fd6b97d72069f440102eec6e371908dd
Reviewed-on: https://go-review.googlesource.com/97016
Run-TryBot: Kunpei Sakai <16e6eef4865510c955b62d2536a11db5146a1308@gmail.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Matthew Dempsky <e56ac2c500064424afac424d4b5e53bd0570a731@google.com>

Cofyc/go,akutz/go,nawawi/go,josharian/go,Cofyc/go,akutz/go,golang/go,golang/go,CAFxX/go,nawawi/go,golang/go,akutz/go,CAFxX/go,cloudflare/go,golang/go,codestation/go,nawawi/go,codestation/go,codestation/go,akutz/go,golang/go,cloudflare/go,cloudflare/go,Cofyc/go,akutz/go,josharian/go,josharian/go,codestation/go,nawawi/go,Cofyc/go,CAFxX/go,akutz/go,nawawi/go,golang/go,CAFxX/go,Cofyc/go,golang/go,josharian/go,nawawi/go,cloudflare/go,josharian/go,codestation/go,Cofyc/go,josharian/go,codestation/go,nawawi/go,codestation/go,cloudflare/go,CAFxX/go,CAFxX/go,nawawi/go,CAFxX/go,Cofyc/go,golang/go,cloudflare/go,cloudflare/go,Cofyc/go,josharian/go,akutz/go,akutz/go,josharian/go,codestation/go,cloudflare/go,CAFxX/go