aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/compile.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-05-22 11:28:19 +0200
committerGitHub <[email protected]>2019-05-22 11:28:19 +0200
commit48e1cc6a6f7bebacd5fb060bfd65ececbabfa6a1 (patch)
tree833fa41fe780cf9a5b9f03f5d64143e115d46b36 /lib/compiler/src/compile.erl
parent13833d876d103c03df4967e1fb249cdb8d30bc0b (diff)
parent18dc9a8099d1ad8f52b9db7bd251bcbfd632ce5e (diff)
downloadotp-48e1cc6a6f7bebacd5fb060bfd65ececbabfa6a1.tar.gz
otp-48e1cc6a6f7bebacd5fb060bfd65ececbabfa6a1.tar.bz2
otp-48e1cc6a6f7bebacd5fb060bfd65ececbabfa6a1.zip
Merge pull request #2242 from bjorng/bjorn/add-swap-instruction
Make the swap instruction known to the compiler
Diffstat (limited to 'lib/compiler/src/compile.erl')
-rw-r--r--lib/compiler/src/compile.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index 17ec986d82..e5e63341b7 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -265,7 +265,9 @@ expand_opt(r19, Os) ->
expand_opt(r20, Os) ->
expand_opt_before_21(Os);
expand_opt(r21, Os) ->
- [no_put_tuple2 | expand_opt(no_bsm3, Os)];
+ [no_swap, no_put_tuple2 | expand_opt(no_bsm3, Os)];
+expand_opt(r22, Os) ->
+ [no_swap | Os];
expand_opt({debug_info_key,_}=O, Os) ->
[encrypt_debug_info,O|Os];
expand_opt(no_type_opt, Os) ->
@@ -275,7 +277,7 @@ expand_opt(no_type_opt, Os) ->
expand_opt(O, Os) -> [O|Os].
expand_opt_before_21(Os) ->
- [no_put_tuple2, no_get_hd_tl, no_ssa_opt_record,
+ [no_swap, no_put_tuple2, no_get_hd_tl, no_ssa_opt_record,
no_utf8_atoms | expand_opt(no_bsm3, Os)].
%% format_error(ErrorDescriptor) -> string()