]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: use Compare instead of Equal
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 3 Apr 2016 21:44:29 +0000 (14:44 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 17 Apr 2016 04:50:45 +0000 (04:50 +0000)
commit2563b6f9fe76da6c9f95c7766986f4684b80ae6d
tree2c16e663582353aa3e18c4a2af2f54f7e8bc12df
parent462aa7ec7b854f5a1bb4f633cb439eb67bced625
cmd/compile/internal/ssa: use Compare instead of Equal

They have different semantics.

Equal is stricter and is designed for the front-end.
Compare is looser and cheaper and is designed for the back-end.
To avoid possible regression, remove Equal from ssa.Type.

Updates #15043

Change-Id: Ie23ce75ff6b4d01b7982e0a89e6f81b5d099d8d6
Reviewed-on: https://go-review.googlesource.com/21483
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/type.go
src/cmd/compile/internal/ssa/TODO
src/cmd/compile/internal/ssa/cse.go
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/stackalloc.go
src/cmd/compile/internal/ssa/type.go