]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: rework handling of udiv on ARM
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 20 Apr 2017 14:50:17 +0000 (07:50 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 20 Apr 2017 16:27:38 +0000 (16:27 +0000)
commit01b1a34aac56580a954a3595dc9afd8de41be9c7
tree62201d7935e70c5e72ece7d485a4e6f369982c0e
parent6e97c71cb7ef2fe139abb9cd07a1aceec16711f4
cmd/compile: rework handling of udiv on ARM

Instead of populating the aux symbol
of CALLudiv during rewrite rules,
populate it during genssa.

This simplifies the rewrite rules.
It also removes all remaining calls
to ctxt.Lookup from any rewrite rules.
This is a first step towards removing
ctxt from ssa.Cache entirely,
and also a first step towards converting
the obj.LSym.Version field into a boolean.
It should also speed up compilation.

Also, move func udiv into package runtime.
That's where it is anyway,
and it lets udiv look and act like the rest of
the runtime support functions.

Change-Id: I41462a632c14fdc41f61b08049ec13cd80a87bfe
Reviewed-on: https://go-review.googlesource.com/41191
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/arm/ssa.go
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/gen/ARM.rules
src/cmd/compile/internal/ssa/gen/ARMOps.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteARM.go
src/cmd/vet/all/whitelist/arm.txt
src/runtime/vlop_arm.s