You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/src/prog8/optimizer/SimplifyExpressions.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ import kotlin.math.log2
11
11
importkotlin.math.pow
12
12
13
13
/*
14
-
todo advanced expression optimization: common (sub) expression elimination (turn common expressions into single subroutine call + introduce variable to hold it)
14
+
todo add more expression optimizations
15
15
16
16
Also see https://egorbo.com/peephole-optimizations.html
Copy file name to clipboardExpand all lines: compiler/src/prog8/optimizer/StatementOptimizer.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,8 @@ import kotlin.math.floor
16
16
17
17
18
18
/*
19
-
TODO: analyse for unreachable code and remove that (f.i. code after goto or return that has no label so can never be jumped to) + print warning about this
20
-
TODO: proper inlining of small subroutines (correctly renaming/relocating all variables in them and refs to those as well, or restrict to subs without variables?)
19
+
TODO: remove unreachable code?
20
+
TODO: proper inlining of tiny subroutines (correctly renaming/relocating all variables in them and refs to those as well, or restrict to subs without variables?)
0 commit comments