]> granicus.if.org Git - re2c/commit
Simplified codegen decision between switches/ifs.
authorUlya Trofimovich <skvadrik@gmail.com>
Thu, 12 Mar 2015 21:49:55 +0000 (21:49 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Thu, 12 Mar 2015 21:49:55 +0000 (21:49 +0000)
commit813167be67449e62971b29af771df0408842c3ce
treeb883727d4c933fc9d7d23fcb38fc0bb015994555
parent881da4c3c2dcc86ed14cd4e5cc9f17d801cd6db0
Simplified codegen decision between switches/ifs.

All tests pass.
The previous condition made more sense: it was clear that the
author intended to consider some frequent corner cases.
But the condition was very tangled and yet too heuristic,
so I substituted it with a meaningless, but simple one.
I'm planning to simplify it even more later on.
re2c/code.cc