binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

Dropped series of load ops to same address could be reduced to single op

Open MaxGraey opened this issue 3 years ago • 0 comments

Inspired by this issue

drop (i32.load $addr, offset=0)
  ...
drop (i32.load $addr, offset=8)
  ...
drop (i32.load $addr, offset=16)

Could be reduced to:

drop (i32.load $addr, offset=16) ;; leave only single `load` with highest `offset`

MaxGraey avatar Aug 20 '22 12:08 MaxGraey