mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-20 12:31:40 +00:00
SmallVectorize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117213 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a4633f5d74
commit
a53fe6070c
@ -116,7 +116,7 @@ unsigned DFSPass(DominatorTreeBase<typename GraphT::NodeType>& DT,
|
|||||||
template<class GraphT>
|
template<class GraphT>
|
||||||
void Compress(DominatorTreeBase<typename GraphT::NodeType>& DT,
|
void Compress(DominatorTreeBase<typename GraphT::NodeType>& DT,
|
||||||
typename GraphT::NodeType *VIn) {
|
typename GraphT::NodeType *VIn) {
|
||||||
std::vector<typename GraphT::NodeType*> Work;
|
SmallVector<typename GraphT::NodeType*, 32> Work;
|
||||||
SmallPtrSet<typename GraphT::NodeType*, 32> Visited;
|
SmallPtrSet<typename GraphT::NodeType*, 32> Visited;
|
||||||
typename DominatorTreeBase<typename GraphT::NodeType>::InfoRec &VInVAInfo =
|
typename DominatorTreeBase<typename GraphT::NodeType>::InfoRec &VInVAInfo =
|
||||||
DT.Info[DT.Vertex[DT.Info[VIn].Ancestor]];
|
DT.Info[DT.Vertex[DT.Info[VIn].Ancestor]];
|
||||||
|
@ -1032,10 +1032,8 @@ static bool AddReachableCodeToWorklist(BasicBlock *BB,
|
|||||||
bool MadeIRChange = false;
|
bool MadeIRChange = false;
|
||||||
SmallVector<BasicBlock*, 256> Worklist;
|
SmallVector<BasicBlock*, 256> Worklist;
|
||||||
Worklist.push_back(BB);
|
Worklist.push_back(BB);
|
||||||
|
|
||||||
std::vector<Instruction*> InstrsForInstCombineWorklist;
|
|
||||||
InstrsForInstCombineWorklist.reserve(128);
|
|
||||||
|
|
||||||
|
SmallVector<Instruction*, 128> InstrsForInstCombineWorklist;
|
||||||
SmallPtrSet<ConstantExpr*, 64> FoldedConstants;
|
SmallPtrSet<ConstantExpr*, 64> FoldedConstants;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user