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 | ed33b13a10258fe1589bf6a76d6d65ec33823076 (patch) | |
tree | d8cdd69be14e5e259df176134a0d5b4baa45a823 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 4c4d0c0cc582a61d9e7f58594c71540aaa56b280 (diff) |
Do not count kill, implicit_def instructions as printed instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index f000a7063d..2e407531dc 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/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); |