]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: rewrites for constant shifts
authorTodd Neal <todd@tneal.org>
Wed, 3 Feb 2016 11:21:24 +0000 (06:21 -0500)
committerTodd Neal <todd@tneal.org>
Thu, 4 Feb 2016 16:41:07 +0000 (16:41 +0000)
commit93a0b0f315a1b37e59449740dc5e5bb692b0d9f5
tree27204c1cc422b947c97d720c1365816bb9d66aa7
parent606a11f46432f62edb759c1d1b86d536b08d0d96
[dev.ssa] cmd/compile: rewrites for constant shifts

Add rewrite rules to optimize constant shifts.

Fixes #10637

Change-Id: I74b724d3e81aeb7098c696d02c050f7fdfd5b523
Reviewed-on: https://go-review.googlesource.com/19106
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Todd Neal <todd@tneal.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/testdata/arithConst_ssa.go
src/cmd/compile/internal/gc/testdata/arith_ssa.go
src/cmd/compile/internal/gc/testdata/gen/arithConstGen.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewritegeneric.go