aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-02-19 07:25:33 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-03-19 23:56:44 +0100
commit7b5cc7b6135733cbbce121cc94fdc4a5400f46b5 (patch)
tree8423965a37ccfb2581846fac894fd4754ab40e12 /validation
parenta45f9140a0c237f1b2f82e66595dba6426c5b598 (diff)
downloadsparse-dev-7b5cc7b6135733cbbce121cc94fdc4a5400f46b5.tar.gz
fix phisources during SWITCH-BR conversion
Like for CBR-BR conversion, when a target BB containing one or several phi-nodes is removed from an OP_SWITCH, the corresponding phi-source must be removed from the phi-node. However this is not done yet. Changing this by adding some code to convert_to_jump() to remove all phi-sources from the discarded targets if the converted instruction is an OP_SWITCH. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
-rw-r--r--validation/optim/bad-phisrc3.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/validation/optim/bad-phisrc3.c b/validation/optim/bad-phisrc3.c
index 6e437771..41537420 100644
--- a/validation/optim/bad-phisrc3.c
+++ b/validation/optim/bad-phisrc3.c
@@ -13,7 +13,6 @@ void foo(void)
/*
* check-name: bad-phisrc3
* check-command: test-linearize -Wno-decl $file
- * check-known-to-fail
*
* check-output-ignore
* check-output-pattern(2): phisrc\\.