cmd/compile: when GOSSAFUNC is set, dump the current pass on crash
cmd/compile: when GOSSAFUNC is set, dump the current pass on crash

When an SSA pass ICEs, it calls f.Fatalf, which terminates the
compiler. When GOSSAFUNC is set, the current pass is not written
to ssa.html. This CL makes it write ssa.html when it calls Fatalf,
for the ease of debugging.

Change-Id: I5d55e4258f0693d89c48c0a84984f2f893b0811d
Reviewed-on: https://go-review.googlesource.com/c/go/+/307509
Trust: Cherry Zhang <d62e63aa42ce272d7b6a5055d97e942b33a34679@google.com>
Run-TryBot: Cherry Zhang <d62e63aa42ce272d7b6a5055d97e942b33a34679@google.com>
TryBot-Result: Go Bot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Than McIntosh <4b2922593166fc595a9b1a408f34f5d3817fe9d2@google.com>
Reviewed-by: David Chase <ae171625adc8645b8b79b7e405a6da5aba5341e0@google.com>

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