fix instruction scheduler
Merge pull request #1894 from WalterBright/fixscheduler

fix instruction scheduler