mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-28 05:19:42 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user