mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use SmallSet instead of std::set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35133 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2edd563825
commit
db264ae07f
@ -3983,7 +3983,7 @@ static bool SinkInvariantGEPIndex(BinaryOperator *BinOp, LoopInfo *loopInfo,
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// DestBBs - These are the blocks where a copy of BinOp will be inserted.
|
// DestBBs - These are the blocks where a copy of BinOp will be inserted.
|
||||||
std::set<BasicBlock*> DestBBs;
|
SmallSet<BasicBlock*, 8> DestBBs;
|
||||||
BasicBlock *DefBB = BinOp->getParent();
|
BasicBlock *DefBB = BinOp->getParent();
|
||||||
bool MadeChange = false;
|
bool MadeChange = false;
|
||||||
for (Value::use_iterator UI = BinOp->use_begin(), E = BinOp->use_end();
|
for (Value::use_iterator UI = BinOp->use_begin(), E = BinOp->use_end();
|
||||||
|
Loading…
Reference in New Issue
Block a user