Skip to content

Commit

Permalink
WASM: Apply intrinsic_function pass after unused_functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Oct 7, 2023
1 parent 68eff8d commit b247454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libasr/codegen/asr_to_wasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3222,7 +3222,7 @@ Result<Vec<uint8_t>> asr_to_wasm_bytes_stream(ASR::TranslationUnit_t &asr,
pass_options.dump_all_passes = co.dump_all_passes;
std::vector<std::string> passes = {"pass_array_by_data", "array_op",
"implied_do_loops", "print_arr", "do_loops", "select_case",
"intrinsic_function", "nested_vars", "unused_functions"};
"nested_vars", "unused_functions", "intrinsic_function"};
LCompilers::PassManager pass_manager;
pass_manager.apply_passes(al, &asr, passes, pass_options, diagnostics);

Expand Down

0 comments on commit b247454

Please sign in to comment.