mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Ignore dbg info, while estimating size of jump through block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66554 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
075630a158
commit
9200c89968
@ -1112,8 +1112,10 @@ static bool BlockIsSimpleEnoughToThreadThrough(BasicBlock *BB) {
|
|||||||
|
|
||||||
// If this basic block contains anything other than a PHI (which controls the
|
// If this basic block contains anything other than a PHI (which controls the
|
||||||
// branch) and branch itself, bail out. FIXME: improve this in the future.
|
// branch) and branch itself, bail out. FIXME: improve this in the future.
|
||||||
for (BasicBlock::iterator BBI = BB->begin(); &*BBI != BI; ++BBI, ++Size) {
|
for (BasicBlock::iterator BBI = BB->begin(); &*BBI != BI; ++BBI) {
|
||||||
if (Size > 10) return false; // Don't clone large BB's.
|
if (Size > 10) return false; // Don't clone large BB's.
|
||||||
|
if (!isa<DbgInfoIntrinsic>(BBI))
|
||||||
|
++Size;
|
||||||
|
|
||||||
// We can only support instructions that are do not define values that are
|
// We can only support instructions that are do not define values that are
|
||||||
// live outside of the current basic block.
|
// live outside of the current basic block.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user