]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: log rules to a file for rule coverage tool
authorKeith Randall <khr@golang.org>
Tue, 24 May 2016 22:43:25 +0000 (15:43 -0700)
committerKeith Randall <khr@golang.org>
Thu, 26 May 2016 20:37:05 +0000 (20:37 +0000)
commit0e930015c16b73dc9f98776b6624f02ea41d8268
tree31af5f1506eb8014f3b50456a74fd50310424a75
parent13a5b1faee06b59df456930d04edd2b5e083b019
cmd/compile: log rules to a file for rule coverage tool

When rules are generated with -log, log rule application to a file.

The file is opened in append mode so multiple calls to the compiler
union their logs.

Change-Id: Ib35c7c85bf58e5909ea9231043f8cbaa6bf278b7
Reviewed-on: https://go-review.googlesource.com/23406
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/ssa/gen/rulegen.go
src/cmd/compile/internal/ssa/rewrite.go