File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -681,7 +681,12 @@ var PTHREADS_PROFILING = 0; // True when building with --threadprofiler
681
681
682
682
var MAX_GLOBAL_ALIGN = - 1 ; // received from the backend
683
683
684
- // Duplicate function elimination
684
+ // Duplicate function elimination. This coalesces function bodies that are
685
+ // identical, which can happen e.g. if two methods have different C/C++
686
+ // or LLVM types, but end up identical at the asm.js level (all pointers
687
+ // are the same as int32_t in asm.js, for example).
688
+ // This option is quite slow to run, as it processes and hashes all methods
689
+ // in the codebase in multiple passes.
685
690
var ELIMINATE_DUPLICATE_FUNCTIONS = 0 ; // disabled by default
686
691
var ELIMINATE_DUPLICATE_FUNCTIONS_PASSES = 5 ;
687
692
var ELIMINATE_DUPLICATE_FUNCTIONS_DUMP_EQUIVALENT_FUNCTIONS = 0 ;
Original file line number Diff line number Diff line change @@ -6229,7 +6229,7 @@ def process(filename):
6229
6229
test ()
6230
6230
6231
6231
# Make sure that DFE ends up eliminating more than 200 functions
6232
- assert (num_original_funcs - self .count_funcs ('src.cpp.o.js' )) > 200
6232
+ assert (num_original_funcs - self .count_funcs ('src.cpp.o.js' )) > 200
6233
6233
break
6234
6234
6235
6235
def test_openjpeg (self ):
You can’t perform that action at this time.
0 commit comments