]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: use v.Args[x].Op in CSE key
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 23 Jul 2015 04:04:25 +0000 (21:04 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 23 Jul 2015 18:12:44 +0000 (18:12 +0000)
commit317226e61c7269b97dafe8fd7524559ed64c64a2
tree704e8ba80176b70d52fe0932a80ba3f9d0567ec3
parent5254be3a9c2d6427c081999309e836951210a69e
[dev.ssa] cmd/compile: use v.Args[x].Op in CSE key

Experimentally, the Ops of v.Args do a good job
of differentiating values that will end up in
different partitions.

Most values have at most two args, so use them.

This reduces the wall time to run test/slice3.go
on my laptop from ~20s to ~12s.

Credit to Todd Neal for the idea.

Change-Id: I55d08f09eb678bbe8366924ca2fabcd32526bf41
Reviewed-on: https://go-review.googlesource.com/12565
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/cse.go