[MachineScheduler] Skip empty scheduling regions

Hello Dev,

I have a question about empty scheduling region. Currently we compare the iterators to

see if there is zero or only one schedulable instruction in the current region. Why don’t

we use NumRegionInstrs instead? Consider a scenario: there is only one real instruction

in the current region but several debug instructions before it.