aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/cgoto01.c
AgeCommit message (Collapse)AuthorFilesLines
2020-11-21simplify OP_COMPUTEDGOTO with unique and known targetLuc Van Oostenryck1-1/+0
If the OP_COMPUTEDGOTO's source pseudo is defined by a single OP_SETVAL/EXPR_LABEL, then the corresponding basic block is the only possible destination and the computed goto can then be simplified into a simple branch. So, convert such computed goto into a simple OP_BR which may then participate in other flow simplifications. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2020-11-21add testcases for COMPUTEDGOTO simplificationLuc Van Oostenryck1-0/+25
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>