mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-12 19:18:48 +00:00
Track blocks visited in reverse postorder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126377 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e1497b9791
commit
a46cd97818
@ -106,6 +106,10 @@ public:
|
|||||||
LiveOutInfo() : NumSignBits(0), KnownOne(1, 0), KnownZero(1, 0) {}
|
LiveOutInfo() : NumSignBits(0), KnownOne(1, 0), KnownZero(1, 0) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// VisitedBBs - The set of basic blocks visited thus far by instruction
|
||||||
|
/// selection.
|
||||||
|
DenseSet<const BasicBlock*> VisitedBBs;
|
||||||
|
|
||||||
/// PHINodesToUpdate - A list of phi instructions whose operand list will
|
/// PHINodesToUpdate - A list of phi instructions whose operand list will
|
||||||
/// be updated after processing the current basic block.
|
/// be updated after processing the current basic block.
|
||||||
/// TODO: This isn't per-function state, it's per-basic-block state. But
|
/// TODO: This isn't per-function state, it's per-basic-block state. But
|
||||||
|
@ -219,6 +219,7 @@ void FunctionLoweringInfo::clear() {
|
|||||||
CatchInfoFound.clear();
|
CatchInfoFound.clear();
|
||||||
#endif
|
#endif
|
||||||
LiveOutRegInfo.clear();
|
LiveOutRegInfo.clear();
|
||||||
|
VisitedBBs.clear();
|
||||||
ArgDbgValues.clear();
|
ArgDbgValues.clear();
|
||||||
ByValArgFrameIndexMap.clear();
|
ByValArgFrameIndexMap.clear();
|
||||||
RegFixups.clear();
|
RegFixups.clear();
|
||||||
|
@ -831,6 +831,10 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
|
|||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
CheckLineNumbers(LLVMBB);
|
CheckLineNumbers(LLVMBB);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (OptLevel != CodeGenOpt::None)
|
||||||
|
FuncInfo->VisitedBBs.insert(LLVMBB);
|
||||||
|
|
||||||
FuncInfo->MBB = FuncInfo->MBBMap[LLVMBB];
|
FuncInfo->MBB = FuncInfo->MBBMap[LLVMBB];
|
||||||
FuncInfo->InsertPt = FuncInfo->MBB->getFirstNonPHI();
|
FuncInfo->InsertPt = FuncInfo->MBB->getFirstNonPHI();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user