Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-1185

Long compilation time in ssa_opt_type_start/continue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: OTP-22.2
    • Fix Version/s: OTP-23.0-rc2
    • Component/s: compiler
    • Labels:
      None

      Description

      Compiling "src/gun_public_suffix"
      remove_file : 0.000 s 3.8 kB
      parse_module : 0.189 s 7096.3 kB
      transform_module : 0.000 s 7096.3 kB
      lint_module : 0.183 s 7096.3 kB
      expand_records : 0.012 s 7096.3 kB
      core : 0.284 s 184374.0 kB
      sys_core_fold : 0.239 s 184362.0 kB
      sys_core_alias : 0.039 s 184362.0 kB
      core_transforms : 0.000 s 184362.0 kB
      sys_core_bsm : 0.116 s 184362.0 kB
      v3_kernel : 0.706 s 144728.4 kB
      beam_kernel_to_ssa : 0.168 s 27579.4 kB
      beam_ssa_share : 0.148 s 25403.7 kB
      beam_ssa_bsm : 1.065 s 25403.9 kB
      %% Sub passes of beam_ssa_bsm from slowest to fastest:
      combine_matches : 0.821 s 77 %
      skip_outgoing_tail_extracti: 0.125 s 12 %
      allow_context_passthrough : 0.118 s 11 %
      accept_context_args : 0.000 s 0 %
      annotate_context_parameters: 0.000 s 0 %
      beam_ssa_funs : 0.079 s 25402.2 kB
      beam_ssa_opt : 121.045 s 25521.3 kB
      %% Sub passes of beam_ssa_opt from slowest to fastest:
      ssa_opt_type_continue : 77.306 s 64 %
      ssa_opt_type_start : 41.162 s 34 %
      ssa_opt_live : 1.020 s 1 %
      ssa_opt_dead : 0.624 s 1 %
      ssa_opt_cse : 0.240 s 0 %
      ssa_opt_tail_phis : 0.131 s 0 %
      ssa_opt_merge_blocks : 0.101 s 0 %
      ssa_opt_bsm_units : 0.057 s 0 %
      ssa_opt_trim_unreachable : 0.053 s 0 %
      ssa_opt_element : 0.052 s 0 %
      ssa_opt_sink : 0.047 s 0 %
      ssa_opt_linearize : 0.046 s 0 %
      ssa_opt_split_blocks : 0.032 s 0 %
      ssa_opt_coalesce_phis : 0.032 s 0 %
      ssa_opt_bsm_shortcut : 0.020 s 0 %
      ssa_opt_record : 0.019 s 0 %
      ssa_opt_float : 0.019 s 0 %
      ssa_opt_blockify : 0.011 s 0 %
      ssa_opt_bsm : 0.010 s 0 %
      ssa_opt_bs_puts : 0.005 s 0 %
      ssa_opt_get_tuple_element : 0.005 s 0 %
      ssa_opt_tuple_size : 0.005 s 0 %
      ssa_opt_sw : 0.003 s 0 %
      ssa_opt_type_finish : 0.000 s 0 %
      beam_ssa_recv : 0.055 s 25521.3 kB
      beam_ssa_pre_codegen : 3.316 s 30803.0 kB
      %% Sub passes of beam_ssa_pre_codegen from slowest to fastest:
      fix_bs : 1.853 s 56 %
      live_intervals : 0.510 s 15 %
      reserve_regs : 0.269 s 8 %
      place_frames : 0.198 s 6 %
      linear_scan : 0.111 s 3 %
      sanitize : 0.096 s 3 %
      use_set_tuple_element : 0.094 s 3 %
      number_instructions : 0.084 s 3 %
      assert_no_critical_edges : 0.068 s 2 %
      opt_get_list : 0.032 s 1 %
      fix_receives : 0.001 s 0 %
      reserve_yregs : 0.000 s 0 %
      turn_yregs : 0.000 s 0 %
      find_yregs : 0.000 s 0 %
      frame_size : 0.000 s 0 %
      copy_retval : 0.000 s 0 %
      legacy_bs : 0.000 s 0 %
      beam_ssa_codegen : 0.554 s 9632.4 kB
      beam_a : 0.062 s 9701.7 kB
      beam_block : 0.008 s 9757.7 kB
      beam_except : 0.013 s 9757.7 kB
      beam_jump : 0.308 s 7769.7 kB
      beam_peep : 0.029 s 7769.7 kB
      beam_clean : 0.013 s 7769.7 kB
      beam_trim : 0.004 s 7769.7 kB
      beam_flatten : 0.001 s 7714.2 kB
      beam_z : 0.002 s 7944.6 kB
      beam_validator : 0.276 s 7944.6 kB
      beam_asm : 0.094 s 3.8 kB
      save_binary : 0.000 s 3.8 kB

      Much appreciated if you can give me a workaround to compile this faster, optimizations be damned.

        Attachments

          Activity

            People

            Assignee:
            john John Högberg
            Reporter:
            essen essen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: