]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: batch up all zero-width instructions
authorHeschi Kreinick <heschi@google.com>
Wed, 28 Feb 2018 22:53:31 +0000 (17:53 -0500)
committerHeschi Kreinick <heschi@google.com>
Fri, 2 Mar 2018 18:55:56 +0000 (18:55 +0000)
commit9dc351beba464aa47048547e60ca4866e345d482
tree711174026c226c6a893ccd9ac3dbc590eb203934
parentcaa1b4afbd145358450587053f290e6870c04b1c
cmd/compile/internal/ssa: batch up all zero-width instructions

When generating location lists, batch up changes for all zero-width
instructions, not just phis. This prevents the creation of location list
entries that don't actually cover any instructions.

This isn't perfect because of the caveats in the prior CL (Copy is
zero-width sometimes) but in practice this seems to fix all of the empty
lists in std.

Change-Id: Ice4a9ade36b6b24ca111d1494c414eec96e5af25
Reviewed-on: https://go-review.googlesource.com/97958
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/debug.go