Teach MachineBasicBlock::getFirstTerminator to ignore debug values.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 13 Jan 2011 18:41:05 +0000 (18:41 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 13 Jan 2011 18:41:05 +0000 (18:41 +0000)
commit64f865ceca4cdd39fcac3d958071be118cb9c1d3
tree143b860483e109db62fc11448d52242e808df032
parentf0908aeade2f41d2fed82de8d85448358b379328
Teach MachineBasicBlock::getFirstTerminator to ignore debug values.

It will still return an iterator that points to the first terminator or end(),
but there may be DBG_VALUE instructions following the first terminator.

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