Skip to content

Commit ec12908

Browse files
authored
ARC optimizations (#929)
1 parent 2e55465 commit ec12908

File tree

72 files changed

+13114
-11170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+13114
-11170
lines changed

cli/asc.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -634,12 +634,12 @@ exports.main = function main(argv, options, callback) {
634634
add("flatten");
635635
add("local-cse");
636636
}
637-
// if (hasARC) { // differs
638-
// if (optimizeLevel < 4) {
639-
// add("flatten");
640-
// }
641-
// add("post-assemblyscript");
642-
// }
637+
if (hasARC) { // differs
638+
if (optimizeLevel < 4) {
639+
add("flatten");
640+
}
641+
add("post-assemblyscript");
642+
}
643643
add("dce");
644644
add("remove-unused-brs");
645645
add("remove-unused-names");
@@ -685,9 +685,9 @@ exports.main = function main(argv, options, callback) {
685685
if (optimizeLevel >= 2 || shrinkLevel >= 1) {
686686
add("rse");
687687
}
688-
// if (hasARC) { // differs
689-
// add("post-assemblyscript-finalize");
690-
// }
688+
if (hasARC) { // differs
689+
add("post-assemblyscript-finalize");
690+
}
691691
add("vacuum");
692692

693693
// PassRunner::addDefaultGlobalOptimizationPostPasses

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"url": "https://github.com/AssemblyScript/assemblyscript/issues"
2222
},
2323
"dependencies": {
24-
"binaryen": "89.0.0-nightly.20191116",
24+
"binaryen": "89.0.0-nightly.20191120",
2525
"long": "^4.0.0",
2626
"source-map-support": "^0.5.16",
2727
"ts-node": "^6.2.0",

0 commit comments

Comments
 (0)