aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
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
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')
-rw-r--r--validation/optim/cgoto01.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/validation/optim/cgoto01.c b/validation/optim/cgoto01.c
index 350c6cd9..94b2c2c4 100644
--- a/validation/optim/cgoto01.c
+++ b/validation/optim/cgoto01.c
@@ -16,7 +16,6 @@ L2: abort();
/*
* check-name: cgoto01
* check-command: test-linearize -Wno-decl $file
- * check-known-to-fail
*
* check-output-ignore
* check-output-excludes: set\\.