]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: debug rewrite
authorCherry Zhang <cherryyz@google.com>
Fri, 24 Jan 2020 15:43:09 +0000 (10:43 -0500)
committerCherry Zhang <cherryyz@google.com>
Mon, 13 Apr 2020 21:56:15 +0000 (21:56 +0000)
commit1b15c7f1026232afd0e398aa5925f534b6b05bdc
treefa73de41d100a66d2bf87a8ad53a68aa1dd99a7a
parent6d63a74f8e8be044d672fc594c0d356eb911f14b
cmd/compile: debug rewrite

If -d=ssa/PASS/debug=N is specified (N >= 2) for a rewrite pass
(e.g. lower), when a Value (or Block) is rewritten, print the
Value (or Block) before and after.

For #31915.
Updates #19013.

Change-Id: I80eadd44302ae736bc7daed0ef68529ab7a16776
Reviewed-on: https://go-review.googlesource.com/c/go/+/176718
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/rewrite.go
test/devirt.go