aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/cgoto02.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-11-14 01:57:39 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-11-21 18:18:43 +0100
commit7943063c5206e28f00d6f4c5117de034c369cd92 (patch)
treee00c927210592dd665e545b2210268d72d1b7ab1 /validation/optim/cgoto02.c
parentd02b992124038a142416ef1b07011b726a55d772 (diff)
downloadsparse-dev-7943063c5206e28f00d6f4c5117de034c369cd92.tar.gz
simplify OP_COMPUTEDGOTO with unique and known target
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>
Diffstat (limited to 'validation/optim/cgoto02.c')
0 files changed, 0 insertions, 0 deletions