[Sink] Don't check BB.empty()
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 22 Oct 2015 20:29:08 +0000 (20:29 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 22 Oct 2015 20:29:08 +0000 (20:29 +0000)
commite0675fb8fbc78bd1e60bab0c1fac711eab96ab6e
tree83c831804e8b24fe661b43f0f9c53d89051b6965
parentf4fb5f500c63e860cb60b5fea6dcd3e69e1927cd
[Sink] Don't check BB.empty()

As an invariant, BasicBlocks cannot be empty when passed to a transform.
This is not the case for MachineBasicBlocks and the Sink pass was ported
from the MachineSink pass which would explain the check's existence.

llvm-svn: 251057
llvm/lib/Transforms/Scalar/Sink.cpp