Fix integer overflow in instruction scheduling.  This can happen if we have
basic blocks that are so long that their size overflows a short.

Also assert that overflow does not happen in the future, as requested by Evan.

This fixes PR4401.

llvm-svn: 83159
6 files changed
tree: 9706d5f840bdfa27ebf0ad96668626ae4be23f2e
  1. clang/
  2. compiler-rt/
  3. llvm/