binaryen
binaryen copied to clipboard
[OptimizeInstructions] Simplify floating points with NaN on left side
It's similar to #4985 but for NaNs on LHS
nan - x => nan'
nan / x => nan'
where nan'
is canonicalized nan
of lhs
Also add default value for input argument in pure
matcher's helper + refactoring.
Fuzzed ITERATION: 13279
@kripken could you take a look please?
@kripken could you take a look please?