[dev.typeparams] cmd/compile: don't compile blank functions
[dev.typeparams] cmd/compile: don't compile blank functions

After typechecking a blank function, we can clear out its body and
skip applying middle-end optimizations (inlining, escape analysis). We
already skip sending them through SSA, and the previous CL updated
inlining and escape analysis regress tests to not depend on compiling
blank functions.

Updates #47446.

Change-Id: Ie678763b0e6ff13dd606ce14906b1ccf1bbccaae
Reviewed-on: https://go-review.googlesource.com/c/go/+/338095
Trust: Matthew Dempsky <e56ac2c500064424afac424d4b5e53bd0570a731@google.com>
Run-TryBot: Matthew Dempsky <e56ac2c500064424afac424d4b5e53bd0570a731@google.com>
TryBot-Result: Go Bot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Robert Griesemer <a6752097faebf1f02d80107d77a9be009089afe3@golang.org>

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