rebuild dominance tree during CFG cleanup
commit35b1a31ca12eba4c404f4616f768d75ea640302f
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Tue, 10 Nov 2020 03:04:33 +0000 (10 04:04 +0100)
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Tue, 17 Nov 2020 17:04:58 +0000 (17 18:04 +0100)
treee6364def411cbf8aa009e9b2e5d912c0021f8383
parent28677f8ac6efd939b2bd306a2b1af0f95ef44136
rebuild dominance tree during CFG cleanup

Currently, the dominance tree is build once, just before the
SSA conversion.

However, changes in the CFG potentially changes the dominance
relationships.

So, rebuild the dominance tree after changes to the CFG.

Note: This doesn't seems to significantly affect the performance
      (at least when used on the kernel):
before after
real  4m15.854s real  4m16.95&s
user 71m11.390s user 71m29.180s
sys 28m45.222s sys 28m46.145s

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
optimize.c