diff options
author | Björn Gustavsson <[email protected]> | 2018-04-29 16:32:03 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2018-08-17 09:50:59 +0200 |
commit | 6065d9f8540cd4621cbace0cd4d485956a720fd6 (patch) | |
tree | a88154e19f3827eb5f87edd43f97fe1fce20078d /lib/compiler/src/beam_z.erl | |
parent | ec64aa2d6f5391fa49c6a6d05713267485654ab2 (diff) | |
download | otp-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.erl | 2 |
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. |