OSDN Git Service

[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)
commite6a5192692bb99878f8902b9f75644a13d57a633
tree08fc5bf5e879a8ebc36c92d2d4bdb64174dd963f
parent2afd3e12093a4aaadd590718aff195a10f53de6b
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251057 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Sink.cpp