cmd/compile: also check package.function for GOSSAFUNC match
cmd/compile: also check package.function for GOSSAFUNC match

Old behavior is still enabled because it doesn't hurt to leave
it in and existing users of this feature (there are dozens of
us!) will not be surprised.  Adding this finer control allows
users to avoid writing ssa.html where they can't, shouldn't, or
just don't want to.

Example, both ways:

$ GOSSAFUNC="(*Reader).Reset" go test -c -o ./a compress/gzip
dumped SSA to bytes/ssa.html
dumped SSA to strings/ssa.html
dumped SSA to bufio/ssa.html
dumped SSA to compress/gzip/ssa.html

$ GOSSAFUNC="compress/gzip.(*Reader).Reset" go test -c -o ./a compress/gzip
dumped SSA to compress/gzip/ssa.html

Updates #40919.

Change-Id: I06b77c3c1d326372a32651570b5dd6e56dfb1d7f
Reviewed-on: https://go-review.googlesource.com/c/go/+/250340
Run-TryBot: David Chase <ae171625adc8645b8b79b7e405a6da5aba5341e0@google.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Keith Randall <8c99c3a9284e493be632950b84cd789d08ed3e9d@golang.org>

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