Skip to content

Commit

Permalink
Fix blank label printing when pipelining loops
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Nov 5, 2017
1 parent 61e4df9 commit f72492b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hlstarget/CBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2518,8 +2518,8 @@ void CWriter::printLoop(Loop* L)
BasicBlock* PreviousLoopHeaderBlock = CurrentLoopHeaderBlock;
CurrentLoopHeaderBlock = L->getHeader();

Out << CurrentLoopHeaderBlock->getName() << ": do { /* Begin loop with " << (L->getLoopDepth() - 1)
<< " nested loops */;\n";
Out << GetValueName(CurrentLoopHeaderBlock) << ": do { /* Begin loop with " << (L->getLoopDepth() - 1)
<< " nested loops */\n";

// Try to pipeline with a rate of 1 new input per iteration. If this fails, it'll automatically
// attempt to use the next largest input, and so on.
Expand All @@ -2535,7 +2535,7 @@ void CWriter::printLoop(Loop* L)
printLoop(BBLoop);
}

Out << " } while (1); /* End of loop '" << CurrentLoopHeaderBlock->getName() << "' */\n";
Out << " } while (1); /* End of loop '" << GetValueName(CurrentLoopHeaderBlock) << "' */\n";

CurrentLoopHeaderBlock = PreviousLoopHeaderBlock;
}
Expand Down

0 comments on commit f72492b

Please sign in to comment.