aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_z.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-04-29 16:32:03 +0200
committerBjörn Gustavsson <[email protected]>2018-08-17 09:50:59 +0200
commit6065d9f8540cd4621cbace0cd4d485956a720fd6 (patch)
treea88154e19f3827eb5f87edd43f97fe1fce20078d /lib/compiler/src/beam_z.erl
parentec64aa2d6f5391fa49c6a6d05713267485654ab2 (diff)
downloadotp-6065d9f8540cd4621cbace0cd4d485956a720fd6.tar.gz
otp-6065d9f8540cd4621cbace0cd4d485956a720fd6.tar.bz2
otp-6065d9f8540cd4621cbace0cd4d485956a720fd6.zip
Simplify optimizations by introducing is_nil late
Diffstat (limited to 'lib/compiler/src/beam_z.erl')
-rw-r--r--lib/compiler/src/beam_z.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_z.erl b/lib/compiler/src/beam_z.erl
index 1c9d762eb1..677094b3cd 100644
--- a/lib/compiler/src/beam_z.erl
+++ b/lib/compiler/src/beam_z.erl
@@ -110,6 +110,8 @@ undo_rename({test,has_map_fields,Fail,[Src|List]}) ->
{test,has_map_fields,Fail,Src,{list,List}};
undo_rename({get_map_elements,Fail,Src,{list,List}}) ->
{get_map_elements,Fail,Src,{list,List}};
+undo_rename({test,is_eq_exact,Fail,[Src,nil]}) ->
+ {test,is_nil,Fail,[Src]};
undo_rename({select,I,Reg,Fail,List}) ->
{I,Reg,Fail,{list,List}};
undo_rename(I) -> I.