]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fold (NegNN (ConstNN ...))
authorJosh Bleecher Snyder <josharian@gmail.com>
Sat, 18 Feb 2017 21:58:59 +0000 (13:58 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 28 Feb 2017 04:43:35 +0000 (04:43 +0000)
commit417f49a363e7dbd01e91c79fc4f13c03681c2cc8
treeb65be18f514d1078791bacb554f91c78b59d6cf3
parent4dbcb53d0b5842d4db5735f9a67935405aa84eab
cmd/compile: fold (NegNN (ConstNN ...))

Fix up and enable a few rules.
They trigger a handful of times in std,
despite the frontend handling.

Change-Id: I83378c057cbbc95a4f2b58cd8c36aec0e9dc547f
Reviewed-on: https://go-review.googlesource.com/37227
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/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go