aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/bad-phisrc3.c
AgeCommit message (Collapse)AuthorFilesLines
2021-03-19fix phisources during SWITCH-BR conversionLuc Van Oostenryck1-1/+0
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>
2021-03-19add testcases to check if phi-sources from removed targets are removed tooLuc Van Oostenryck1-0/+21
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>