]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: get rid of converts in unsafe.Pointer arithmetic
authorKeith Randall <khr@golang.org>
Fri, 23 Oct 2015 21:08:50 +0000 (14:08 -0700)
committerKeith Randall <khr@golang.org>
Fri, 23 Oct 2015 21:43:38 +0000 (21:43 +0000)
commita3180d8b1daff3e0238a3ff08dd9a4213a9e1266
tree32cd6ce19a167f272e70174f19ed47f78a4496c6
parente99dd520665000dfeb848fb4ecd381314b8fe61b
[dev.ssa] cmd/compile: get rid of converts in unsafe.Pointer arithmetic

unsafe.Pointer->uintptr, add, then uintptr->unsafe.Pointer.
Do the add directly on the pointer type instead.

Change-Id: I5a3a32691d0a000e16975857974ed9a1039c6d28
Reviewed-on: https://go-review.googlesource.com/16281
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go