projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab7f107
)
Ignore debug value instructions while analyzing BB for tail duplication.
author
Devang Patel
<dpatel@apple.com>
Tue, 16 Mar 2010 21:02:07 +0000
(21:02 +0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 16 Mar 2010 21:02:07 +0000
(21:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98675
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/TailDuplication.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/TailDuplication.cpp
b/lib/CodeGen/TailDuplication.cpp
index fa3785dc0795f9a989cb1825b49cdf410925ead8..aa6e2b4e87e34b8fb845d51f2ea455a20d9c5553 100644
(file)
--- 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,