Fix the check for an empty basic block to check for an empty SUnits
authorDan Gohman <gohman@apple.com>
Fri, 16 Jan 2009 21:37:14 +0000 (21:37 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 16 Jan 2009 21:37:14 +0000 (21:37 +0000)
commit8554449e311e50f2e96db1081a17ccf7151ef7f6
tree0ac77b0f9cad33eca0f956603106c710545172db
parentfebf71db2db61b8c7bac2ddffba8f1d5d1a95cb9
Fix the check for an empty basic block to check for an empty SUnits
array instead, since this is what the scheduler actually cares about.
And remove a check that is unnecessary, since it can assume that
SUnits isn't empty.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62362 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/PostRASchedulerList.cpp