diff options
author | Keith Randall <khr@golang.org> | 2016-01-27 16:47:23 -0800 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2016-01-28 20:59:20 +0000 |
commit | 6a96a2fe5a95375e2f8cccca6d848728fef0e09f (patch) | |
tree | 38d12dceac0e17fd6dc1ecb3b62560295992c607 /test/nilcheck.go | |
parent | 7b773946c09e075ed50c49e76e08f61c16616ee4 (diff) | |
download | go-6a96a2fe5a95375e2f8cccca6d848728fef0e09f.tar.gz go-6a96a2fe5a95375e2f8cccca6d848728fef0e09f.zip |
[dev.ssa] cmd/compile: make cse faster
It is one of the slowest compiler phases right now, and we
run two of them.
Instead of using a map to make the initial partition, use a sort.
It is much less memory intensive.
Do a few optimizations to avoid work for size-1 equivalence classes.
Implement -N.
Change-Id: I1d2d85d3771abc918db4dd7cc30b0b2d854b15e1
Reviewed-on: https://go-review.googlesource.com/19024
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'test/nilcheck.go')
-rw-r--r-- | test/nilcheck.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/nilcheck.go b/test/nilcheck.go index 173fcb33a6..ab28b33d41 100644 --- a/test/nilcheck.go +++ b/test/nilcheck.go @@ -1,4 +1,3 @@ -// +build !amd64 // errorcheck -0 -N -d=nil // Copyright 2013 The Go Authors. All rights reserved. |