]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: add a zero arg cse pass
authorTodd Neal <todd@tneal.org>
Thu, 11 Feb 2016 01:39:32 +0000 (19:39 -0600)
committerTodd Neal <todd@tneal.org>
Mon, 22 Feb 2016 13:06:18 +0000 (13:06 +0000)
commit94f02451148755b31cc4dd455c9e215d5f898898
tree2bc228b54940eca91cb2f664334f8a1f1d64c802
parent4827c6d0778d93afeaee658a330d97b8f1b510a6
[dev.ssa] cmd/compile: add a zero arg cse pass

Add an initial cse pass that only operates on zero argument
values.  This removes the need for a special case in cse for removing
OpSB and speeds up arithConst_ssa.go compilation by 9% while slowing
"test -c net/http" by 1.5%.

Change-Id: Id1500482485426f66c6c2eba75eeaf4f19c8a889
Reviewed-on: https://go-review.googlesource.com/19454
Run-TryBot: Todd Neal <todd@tneal.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/cse.go
src/cmd/compile/internal/ssa/cse_test.go
src/cmd/compile/internal/ssa/zcse.go [new file with mode: 0644]