]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: add division rewrite to walk pass.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 26 Nov 2012 22:45:22 +0000 (23:45 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 26 Nov 2012 22:45:22 +0000 (23:45 +0100)
commit4cc9de914764679defbffd77b30e80a325e4ebd0
treefce75199ce900c274384fb9f82919fcd7c6b10bb
parent4a1b8146687c1e73786857af36d8b4f1053aa4e6
cmd/gc: add division rewrite to walk pass.

This allows 5g and 8g to benefit from the rewrite as shifts
or magic multiplies. The 64-bit arithmetic is not handled there,
and left in 6g.

Update #2230.

R=golang-dev, dave, mtj, iant, rsc
CC=golang-dev
https://golang.org/cl/6819123
13 files changed:
src/cmd/5g/cgen.c
src/cmd/5g/gg.h
src/cmd/5g/ggen.c
src/cmd/5g/peep.c
src/cmd/6g/cgen.c
src/cmd/6g/gg.h
src/cmd/6g/ggen.c
src/cmd/6g/peep.c
src/cmd/8g/cgen.c
src/cmd/8g/gg.h
src/cmd/8g/ggen.c
src/cmd/8g/gsubr.c
src/cmd/gc/walk.c