[PHIEliminate] Move dbg values after phi and label
* If there is the dbg_values between phi and label (after phi and before label),
DBG_VALUE will block PHI lower after LABEL. Moving all DBG_VALUEs after Labels
in the function ScheduleDAGSDNodes::EmitSchedule to avoid impacting PHI lowering.
before:
phi
dbg_value
label
after: (move dbg_value after label)
phi
label
dbg_value
then: (phi lowering after label)
LABEL
COPY
DBG_VALUE
Fix the issue: https://bugs.llvm.org/show_bug.cgi?id=43859
Good concise comment -- just a nit, could you use DBG_VALUEs instead of dbg_values? (It helps people searching for debug related stuff to keep it consistent).