[llvm-commits] [llvm] r98675 - /llvm/trunk/lib/CodeGen/TailDuplication.cpp
Devang Patel
dpatel at apple.com
Tue Mar 16 14:02:07 PDT 2010
Author: dpatel
Date: Tue Mar 16 16:02:07 2010
New Revision: 98675
URL: http://llvm.org/viewvc/llvm-project?rev=98675&view=rev
Log:
Ignore debug value instructions while analyzing BB for tail duplication.
Modified:
llvm/trunk/lib/CodeGen/TailDuplication.cpp
Modified: llvm/trunk/lib/CodeGen/TailDuplication.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TailDuplication.cpp?rev=98675&r1=98674&r2=98675&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TailDuplication.cpp (original)
+++ llvm/trunk/lib/CodeGen/TailDuplication.cpp Tue Mar 16 16:02:07 2010
@@ -495,7 +495,7 @@
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,
More information about the llvm-commits
mailing list