|
cmd/gc: faster code, mainly for rotate
* Eliminate bounds check on known small shifts.
* Rewrite x<<s | x>>(32-s) as a rotate (constant s).
* More aggressive (but still minimal) range analysis.
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+925 lines, -117 lines) |
Patch |
|
M |
src/cmd/5g/cgen.c
|
View
|
1
2
|
4 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/cmd/5g/cgen64.c
|
View
|
1
2
3
|
2 chunks |
+42 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/cmd/5g/gg.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/5g/ggen.c
|
View
|
1
2
3
4
|
3 chunks |
+21 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/cmd/5g/gsubr.c
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/6g/cgen.c
|
View
|
1
2
3
|
8 chunks |
+71 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/cmd/6g/gg.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/6g/ggen.c
|
View
|
1
|
3 chunks |
+15 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/cmd/6g/gsubr.c
|
View
|
1
2
3
4
|
11 chunks |
+56 lines, -16 lines |
0 comments
|
Download
|
|
M |
src/cmd/8g/cgen.c
|
View
|
1
2
|
4 chunks |
+13 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/cmd/8g/cgen64.c
|
View
|
1
2
|
2 chunks |
+35 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/cmd/8g/gg.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/8g/ggen.c
|
View
|
1
2
|
3 chunks |
+31 lines, -21 lines |
0 comments
|
Download
|
|
M |
src/cmd/8g/gsubr.c
|
View
|
1
2
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/cmd/gc/go.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/cmd/gc/range.c
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/cmd/gc/sinit.c
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/cmd/gc/subr.c
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/cmd/gc/walk.c
|
View
|
1
2
3
|
9 chunks |
+189 lines, -36 lines |
0 comments
|
Download
|
|
A |
test/bounds.go
|
View
|
1
2
3
|
1 chunk |
+277 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/rotate.go
|
View
|
1
2
3
|
1 chunk |
+141 lines, -0 lines |
0 comments
|
Download
|
Total messages: 7
|