diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-16 21:02:07 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-16 21:02:07 +0000 |
commit | cbe1e31732c5d4fb1277195e76b9b42c115396aa (patch) | |
tree | 7d7a0cd8a8777298cab4e848c5a572a973e91fe9 /lib/CodeGen/TailDuplication.cpp | |
parent | ab7f10705a98d8fd4f8f386643ab1ba6b9ed3759 (diff) |
Ignore debug value instructions while analyzing BB for tail duplication.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TailDuplication.cpp')
-rw-r--r-- | lib/CodeGen/TailDuplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TailDuplication.cpp b/lib/CodeGen/TailDuplication.cpp index fa3785dc07..aa6e2b4e87 100644 --- a/lib/CodeGen/TailDuplication.cpp +++ b/lib/CodeGen/TailDuplication.cpp @@ -495,7 +495,7 @@ TailDuplicatePass::TailDuplicate(MachineBasicBlock *TailBB, MachineFunction &MF, if (InstrCount == MaxDuplicateCount) return false; // Remember if we saw a call. if (I->getDesc().isCall()) HasCall = true; - if (!I->isPHI()) + if (!I->isPHI() && !I->isDebugValue()) InstrCount += 1; } // Heuristically, don't tail-duplicate calls if it would expand code size, |