diff options
| author | Cherry Zhang <cherryyz@google.com> | 2016-09-19 07:45:08 -0400 |
|---|---|---|
| committer | Cherry Zhang <cherryyz@google.com> | 2016-09-20 13:40:48 +0000 |
| commit | 38cd79889ece342643b56ad6d496ef8931ca9272 (patch) | |
| tree | 798540d48b188adac947c3709d6a2a6f8b4d80c6 /src/runtime/pprof | |
| parent | f964810025ae58b623798a1944c39c06266fb45d (diff) | |
| download | go-38cd79889ece342643b56ad6d496ef8931ca9272.tar.xz | |
cmd/compile: simplify div/mod on ARM
On ARM, DIV, DIVU, MOD, MODU are pseudo instructions that makes
runtime calls _div/_udiv/_mod/_umod, which themselves are wrappers
of udiv. The udiv function does the real thing.
Instead of generating these pseudo instructions, call to udiv
directly. This removes one layer of wrappers (which has an awkward
way of passing argument), and also allows combining DIV and MOD
if both results are needed.
Change-Id: I118afc3986db3a1daabb5c1e6e57430888c91817
Reviewed-on: https://go-review.googlesource.com/29390
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/runtime/pprof')
0 files changed, 0 insertions, 0 deletions
