Skip to content

Commit 6ee7082

Browse files
committed
[doc] Add optimization ideas
1 parent c2bdd61 commit 6ee7082

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/allopts.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
|| All optimizations
22
=======================
33

4+
IR-construction time
5+
only create phis for variables referenced after a join point
6+
run all local misc optimizations per-BB
7+
* run loop optimizations immediately after AST translation
8+
49
local check eliminations
510
* shift check
611
* divide check
@@ -27,7 +32,7 @@ local misc
2732
fold pointer arithmetic
2833
boilerplate object copy for large mostly constant arrays
2934
strength-reduce {ADT == k} to check only one tag
30-
combine adjacent loads/stores
35+
combine adjacent byte loads/stores into words
3136
byteswap recognition
3237
reorder bounds checks of a[0], a[1], a[2]...
3338
ordering of strength-reduction and direct call recording (inlining)
@@ -147,6 +152,8 @@ whole-program
147152
code layout
148153
data layout
149154
field packing across hierarchy
155+
specialize class to field's type
156+
pull methods down--specialize to this
150157
escape analysis
151158
region inference--stack allocation
152159
purity analysis

0 commit comments

Comments
 (0)