cmd/compile: add ability to indicate 'concurrentOk' for debug flags

Also removes no-longer-needed "Any" field from compiler's DebugFlags.
Test/use case for this is the fmahash CL.

Change-Id: I214f02c91f30fc2ce53caf75fa5e2b905dd33429
Reviewed-on: https://go-review.googlesource.com/c/go/+/445495
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: David Chase <drchase@google.com>
This commit is contained in:
David Chase 2022-10-25 23:01:44 -04:00
parent 5619dd0849
commit c81c027982
3 changed files with 25 additions and 16 deletions

View file

@ -50,7 +50,7 @@ type DebugFlags struct {
InlineHotBudget int `help:"inline budget for hot functions"`
PGOInline int `help:"debug profile-guided inlining"`
Any bool // set when any of the debug flags have been set
ConcurrentOk bool // true if only concurrentOk flags seen
}
// DebugSSA is called to set a -d ssa/... option.