diff options
author | Björn Gustavsson <[email protected]> | 2019-01-26 07:04:02 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2019-01-28 07:33:56 +0100 |
commit | acf96b6e024864b5dce41ef68725bb0228fe3100 (patch) | |
tree | 01861177af7bc931b0e62dedd82f9e28caad7bd7 /scripts | |
parent | 3347d260556cbc04db37db1f0e339bb6f4dbc921 (diff) | |
download | otp-acf96b6e024864b5dce41ef68725bb0228fe3100.tar.gz otp-acf96b6e024864b5dce41ef68725bb0228fe3100.tar.bz2 otp-acf96b6e024864b5dce41ef68725bb0228fe3100.zip |
Speed up beam_ssa_dead
Compilation of code similar the following would be very slow:
uts46_map(CP) when 0 =< CP, CP =< 44 -> '3';
uts46_map(CP) when 45 =< CP, CP =< 46 -> 'V';
uts46_map(CP) when 48 =< CP, CP =< 57 -> 'V';
%% More than 2500 similar lines follows.
.
.
.
The code is from from:
https://github.com/benoitc/erlang-idna/blob/3eb54ccbfa6fb917c0f4ca9197da337ad888ffe0/src/idna_mapping.erl#L6780
By using information about skippable blocks, the beam_ssa_dead
pass can be sped up to compile idna_mapping.erl about 10 times faster.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions