Commit 7edd6efd authored by titzer's avatar titzer Committed by Commit bot

[turbofan] Skip printing of empty gap moves.

R=bmeurer@chromium.org
BUG=

Review URL: https://codereview.chromium.org/812983002

Cr-Commit-Position: refs/heads/master@{#25878}
parent b34a7d23
...@@ -287,16 +287,18 @@ std::ostream& operator<<(std::ostream& os, ...@@ -287,16 +287,18 @@ std::ostream& operator<<(std::ostream& os,
if (instr.IsGapMoves()) { if (instr.IsGapMoves()) {
const GapInstruction* gap = GapInstruction::cast(&instr); const GapInstruction* gap = GapInstruction::cast(&instr);
os << "gap "; if (!gap->IsRedundant()) {
for (int i = GapInstruction::FIRST_INNER_POSITION; os << "gap ";
i <= GapInstruction::LAST_INNER_POSITION; i++) { for (int i = GapInstruction::FIRST_INNER_POSITION;
os << "("; i <= GapInstruction::LAST_INNER_POSITION; i++) {
if (gap->parallel_moves_[i] != NULL) { os << "(";
PrintableParallelMove ppm = {printable.register_configuration_, if (gap->parallel_moves_[i] != NULL) {
gap->parallel_moves_[i]}; PrintableParallelMove ppm = {printable.register_configuration_,
os << ppm; gap->parallel_moves_[i]};
os << ppm;
}
os << ") ";
} }
os << ") ";
} }
} else if (instr.IsSourcePosition()) { } else if (instr.IsSourcePosition()) {
const SourcePositionInstruction* pos = const SourcePositionInstruction* pos =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment