diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-27 19:38:45 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-27 19:38:45 +0000 |
commit | eb828b6391c6e2d8ee04f79b4d187a49c647c164 (patch) | |
tree | d63791a6bef9a818271e505ca4a1440066a778c3 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 7d8072e03860f02648cf205be924198359f3a0cb (diff) | |
download | bcm5719-llvm-eb828b6391c6e2d8ee04f79b4d187a49c647c164.tar.gz bcm5719-llvm-eb828b6391c6e2d8ee04f79b4d187a49c647c164.zip |
Do not count kill, implicit_def instructions as printed instructions.
llvm-svn: 102453
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index f000a7063d5..2e407531dc9 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -531,11 +531,11 @@ void AsmPrinter::EmitFunctionBody() { for (MachineBasicBlock::const_iterator II = I->begin(), IE = I->end(); II != IE; ++II) { // Print the assembly for the instruction. - if (!II->isLabel()) + if (!II->isLabel() && !II->isImplicitDef() && !II->isKill()) { HasAnyRealCode = true; - - ++EmittedInsts; - + ++EmittedInsts; + } + if (ShouldPrintDebugScopes) { if (TimePassesIsEnabled) { NamedRegionTimer T(DbgTimerName, DWARFGroupName); |