| OLD | NEW |
| 1 //===- subzero/src/IceCfgNode.cpp - Basic block (node) implementation -----===// | 1 //===- subzero/src/IceCfgNode.cpp - Basic block (node) 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 // This file implements the CfgNode class, including the complexities | 10 // This file implements the CfgNode class, including the complexities |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 Variable *Var = llvm::cast<Variable>(I->getSrc(Src)); | 386 Variable *Var = llvm::cast<Variable>(I->getSrc(Src)); |
| 387 InstNumberT InstNumber = I->getNumber(); | 387 InstNumberT InstNumber = I->getNumber(); |
| 388 Liveness->addLiveRange(Var, InstNumber, InstNumber, 1); | 388 Liveness->addLiveRange(Var, InstNumber, InstNumber, 1); |
| 389 } | 389 } |
| 390 } | 390 } |
| 391 } | 391 } |
| 392 } | 392 } |
| 393 } | 393 } |
| 394 if (Mode != Liveness_Intervals) | 394 if (Mode != Liveness_Intervals) |
| 395 return; | 395 return; |
| 396 TimerMarker T1(TimerStack::TT_liveRangeCtor, Func); |
| 396 | 397 |
| 397 SizeT NumVars = Liveness->getNumVarsInNode(this); | 398 SizeT NumVars = Liveness->getNumVarsInNode(this); |
| 398 SizeT NumGlobals = Liveness->getNumGlobalVars(); | 399 SizeT NumGlobals = Liveness->getNumGlobalVars(); |
| 399 llvm::BitVector &LiveIn = Liveness->getLiveIn(this); | 400 llvm::BitVector &LiveIn = Liveness->getLiveIn(this); |
| 400 llvm::BitVector &LiveOut = Liveness->getLiveOut(this); | 401 llvm::BitVector &LiveOut = Liveness->getLiveOut(this); |
| 401 std::vector<InstNumberT> &LiveBegin = Liveness->getLiveBegin(this); | 402 std::vector<InstNumberT> &LiveBegin = Liveness->getLiveBegin(this); |
| 402 std::vector<InstNumberT> &LiveEnd = Liveness->getLiveEnd(this); | 403 std::vector<InstNumberT> &LiveEnd = Liveness->getLiveEnd(this); |
| 403 for (SizeT i = 0; i < NumVars; ++i) { | 404 for (SizeT i = 0; i < NumVars; ++i) { |
| 404 // Deal with the case where the variable is both live-in and | 405 // Deal with the case where the variable is both live-in and |
| 405 // live-out, but LiveEnd comes before LiveBegin. In this case, we | 406 // live-out, but LiveEnd comes before LiveBegin. In this case, we |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 if (!First) | 544 if (!First) |
| 544 Str << ", "; | 545 Str << ", "; |
| 545 First = false; | 546 First = false; |
| 546 Str << "%" << I->getName(); | 547 Str << "%" << I->getName(); |
| 547 } | 548 } |
| 548 Str << "\n"; | 549 Str << "\n"; |
| 549 } | 550 } |
| 550 } | 551 } |
| 551 | 552 |
| 552 } // end of namespace Ice | 553 } // end of namespace Ice |
| OLD | NEW |