aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/multi-phisrc.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-03-28 13:52:38 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-03-28 16:07:29 +0200
commit78183a155b833ded168e9f72055a8a0f01a5ad46 (patch)
treeb0dc9f4b34dc0de74d84b30d79c7c9c5ace1ab42 /validation/optim/multi-phisrc.c
parentdcb199646134ae0d264c72175a9ad8314f7836c8 (diff)
downloadsparse-dev-78183a155b833ded168e9f72055a8a0f01a5ad46.tar.gz
better check validity of phi-sources
Transformations made by try_to_simplify_bb() are invalid if there isn't a one-to-one correspondence between the BB's parents and the phi-sources of the phi-node(s) in the BB. This correspondence is currently checked by checking if the number of phi-sources and the number of parent are equal, but this is only an approximation. Change this check into an exact one, using the fact that BBs in the parent list and phi-sources in the phi_list are in the same order. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/multi-phisrc.c')
0 files changed, 0 insertions, 0 deletions