]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add MIPS64 optimizations, SSA on by default
authorCherry Zhang <cherryyz@google.com>
Thu, 25 Aug 2016 19:52:45 +0000 (15:52 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 26 Aug 2016 19:45:06 +0000 (19:45 +0000)
commit7f27f1dfdd81c978d4868917d7622e09b288ecb0
treec7eb20bafa02a4d9eb659de1a42c3d46989b076e
parent9f7ea616742f8d58ecc140afcb0fa53bcb84fe9b
cmd/compile: add MIPS64 optimizations, SSA on by default

Add the following optimizations:
- fold constants
- fold address into load/store
- simplify extensions and conditional branches
- remove nil checks

Turn on SSA on MIPS64 by default, and toggle the tests.

Fixes #16359.

Change-Id: I7f1e38c2509e22e42cd024e712990ebbe47176bd
Reviewed-on: https://go-review.googlesource.com/27870
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/mips64/ssa.go
src/cmd/compile/internal/ssa/gen/MIPS64.rules
src/cmd/compile/internal/ssa/gen/MIPS64Ops.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteMIPS64.go
test/live.go
test/live_ssa.go
test/nilptr3_ssa.go
test/sliceopt.go