| OLD | NEW |
| 1 //===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===// | 1 //===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 /// | 9 /// |
| 10 /// \file | 10 /// \file |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 } | 803 } |
| 804 resetCurrentNode(); | 804 resetCurrentNode(); |
| 805 if (isVerbose(IceV_Liveness)) { | 805 if (isVerbose(IceV_Liveness)) { |
| 806 // Print summary info about variables | 806 // Print summary info about variables |
| 807 for (Variable *Var : Variables) { | 807 for (Variable *Var : Variables) { |
| 808 Str << "// multiblock="; | 808 Str << "// multiblock="; |
| 809 if (getVMetadata()->isTracked(Var)) | 809 if (getVMetadata()->isTracked(Var)) |
| 810 Str << getVMetadata()->isMultiBlock(Var); | 810 Str << getVMetadata()->isMultiBlock(Var); |
| 811 else | 811 else |
| 812 Str << "?"; | 812 Str << "?"; |
| 813 Str << " defs="; |
| 814 bool FirstPrint = true; |
| 815 if (VMetadata->getKind() != VMK_Uses) { |
| 816 if (const Inst *FirstDef = VMetadata->getFirstDefinition(Var)) { |
| 817 Str << FirstDef->getNumber(); |
| 818 FirstPrint = false; |
| 819 } |
| 820 } |
| 821 if (VMetadata->getKind() == VMK_All) { |
| 822 for (const Inst *Instr : VMetadata->getLatterDefinitions(Var)) { |
| 823 if (!FirstPrint) |
| 824 Str << ","; |
| 825 Str << Instr->getNumber(); |
| 826 FirstPrint = false; |
| 827 } |
| 828 } |
| 813 Str << " weight=" << Var->getWeight(this) << " "; | 829 Str << " weight=" << Var->getWeight(this) << " "; |
| 814 Var->dump(this); | 830 Var->dump(this); |
| 815 Str << " LIVE=" << Var->getLiveRange() << "\n"; | 831 Str << " LIVE=" << Var->getLiveRange() << "\n"; |
| 816 } | 832 } |
| 817 } | 833 } |
| 818 // Print each basic block | 834 // Print each basic block |
| 819 for (CfgNode *Node : Nodes) | 835 for (CfgNode *Node : Nodes) |
| 820 Node->dump(this); | 836 Node->dump(this); |
| 821 if (isVerbose(IceV_Instructions)) | 837 if (isVerbose(IceV_Instructions)) |
| 822 Str << "}\n"; | 838 Str << "}\n"; |
| 823 } | 839 } |
| 824 | 840 |
| 825 } // end of namespace Ice | 841 } // end of namespace Ice |
| OLD | NEW |