aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/multi-phisrc.c
AgeCommit message (Collapse)AuthorFilesLines
2021-04-02fix remove_merging_phisrc()Luc Van Oostenryck1-1/+0
The current implementation of remove_merging_phisrc() can't work correctly when these phi-sources belong to a basic block with several children to the same target basic block (this happens commonly with OP_SWITCH). Fix this by directly scanning the source basic block for the presence of any phi-source. Once identified, the processing is kept unchanged: remove these phi-sources if a sibling phi-source will 'overwrite' them in the target block. Fixes: 2fdaca9e7175e62f08d259f5cb3ec7c9725bba68 Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2021-03-26additional testcase for remove_merging_phisrc()Luc Van Oostenryck1-0/+24
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>