]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: optimize NilCheck in SSA for ARM
authorCherry Zhang <cherryyz@google.com>
Fri, 24 Jun 2016 19:06:17 +0000 (15:06 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 24 Jun 2016 20:51:42 +0000 (20:51 +0000)
commitdf43cf033f41d784a9f263b932eb8c859132eec4
tree6ccad1b882d9e67f6415a8688b3cbfdd4e125850
parent8eadb89266a5a785e568f936b176d746a6d7de7c
[dev.ssa] cmd/compile: optimize NilCheck in SSA for ARM

Like AMD64, don't issue NilCheck instruction if the subsequent block
has a load or store at the same address.

Pass test/nilptr3_ssa.go.

Updates #15365.

Change-Id: Ic88780dab8c4893c57d1c95f663760cc185fe51e
Reviewed-on: https://go-review.googlesource.com/24451
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
src/cmd/compile/internal/arm/ssa.go