compiler: permit inlining functions with labels and goto statements

This permits inlining functions with for loops and some switches, as
they are lowered to if and goto statements before exporting them.

This by itself only adds three new inlinable functions in the standard
library: sort.Search, context.(*emptyCtx).String, and
cmd/go/internal/work.(*Builder).disableBuildID.

Change-Id: Ic09fc3c7dfc9eeb51494a350e8a5cb18b5e31799
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/181197
Reviewed-by: Cherry Zhang <cherryyz@google.com>
6 files changed