]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: normalize more whitespace in rewrite rules
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 10 Mar 2019 03:34:58 +0000 (19:34 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 11 Mar 2019 17:18:40 +0000 (17:18 +0000)
commitb4fbd291b3872706422d39fd1140b7b929c77622
tree1e94cb6aec37c5e51fbf124e6f53b2a49c4c0738
parent65a54aef5bedbf8035a465d12ad54783fb81e957
cmd/compile: normalize more whitespace in rewrite rules

If you write a rewrite rule:

(something) && noteRule("X")-> (something)

then rulegen will panic with an error message about commutativity.
The real problem is the lack of a space between the ) and the ->.
Normalize that bit of whitespace too.

Change-Id: Idbd53687cd0398fe275ff2702667688cad05b4ca
Reviewed-on: https://go-review.googlesource.com/c/go/+/166427
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/rulegen.go