ART: Fix Quick's DCE+GVN
DCE_GVN does not take into account the following case:
mov a, b
mov c, b
when optimization tries to replace a with c it must ensure that
for all uses of a there is no new definition of c before use.
Otherwise that use will incorrectly substituted with new c instead
of original b.
Signed-off-by: Serguei Katkov <email@example.com>
(cherry picked from commit 2f2f17399f6bdfc5ec94a875152c31ef79620520)
2 files changed