[erlang-patches] binary matching optimization error

Bjorn Gustavsson <>
Fri Aug 22 10:22:59 CEST 2008

2008/8/21 Christian von Roques <>

Thanks for the bug report and patch. I have added your examples to the test

> I've amended my patch, but still hope for a more complete solution
> from the Erlang team e.g. by placing the bs_save2 only in those
> control flow paths where they are needed and not modifying the
> original match context where it is still needed.

Placing the bs_save2 instructions only in the control flow paths where they
are needed does seem to be the best solution. I will try to implement that
for R12B-4 (if it turns out to be too involved to implement correctly, I
probably use your patch).

Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20080822/c6cfb1f8/attachment.html>

More information about the erlang-patches mailing list