diff options
| author | David Chase <drchase@google.com> | 2019-09-25 15:20:10 -0400 |
|---|---|---|
| committer | David Chase <drchase@google.com> | 2019-10-03 21:07:45 +0000 |
| commit | 6139019efaa3faa9ec94a57ab8c15b726d516664 (patch) | |
| tree | f0bfcfc217dcdc554d9bd32d07db74cd6343fd74 /src/os/exec/exec.go | |
| parent | f7f85bdc2c4a8a472a271a7d2333557ad6143eeb (diff) | |
| download | go-6139019efaa3faa9ec94a57ab8c15b726d516664.tar.xz | |
cmd/compile: pick position of implicit break statements more carefully
The previous version used the position of the switch statement,
which makes for potentially jumpy stepping and introduces a large
number of statements repeating the line (tricky for inserting
breaks). It also shared a single OBREAK node and this was not
really a syntax "tree".
This improves both the nostmt test (by 6 lines) and
reduces the total badness score from dwarf-goodness (by about 200).
Change-Id: I1f71b231a26f152bdb6ce9bc8f95828bb222f665
Reviewed-on: https://go-review.googlesource.com/c/go/+/188218
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Diffstat (limited to 'src/os/exec/exec.go')
0 files changed, 0 insertions, 0 deletions
