From f5ad8d333947da10fa712db4a579b838d00ad485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Mon, 18 Mar 2019 06:34:10 +0100 Subject: Combine move and init to move_shift --- erts/emulator/beam/ops.tab | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erts/emulator/beam/ops.tab b/erts/emulator/beam/ops.tab index b405999f2a..46afeb51c9 100644 --- a/erts/emulator/beam/ops.tab +++ b/erts/emulator/beam/ops.tab @@ -373,11 +373,12 @@ swap y y move SD=x D=x | move Src=cxy SD=x | distinct(D, Src) => move_shift Src SD D move SD=y D=x | move Src=x SD=y | distinct(D, Src) => move_shift Src SD D +move SD=y D=x | init SD | => move_shift n SD D move SD=x D=y | move Src=x SD=x | distinct(D, Src) => move_shift Src SD D move SD=x==0 D=y | move Src=y SD=x==0 | distinct(D, Src) => move_shift Src SD D move_shift cxy x x -move_shift x y x +move_shift nx y x move_shift x x y move_shift y r y -- cgit v1.2.3