mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Revert "Repace SmallPtrSet with SmallPtrSetImpl in function arguments to avoid needing to mention the size."
Getting a weird buildbot failure that I need to investigate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215870 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -45,7 +45,7 @@ bool llvm::isSafeToDestroyConstant(const Constant *C) {
|
||||
}
|
||||
|
||||
static bool analyzeGlobalAux(const Value *V, GlobalStatus &GS,
|
||||
SmallPtrSetImpl<const PHINode *> &PhiUsers) {
|
||||
SmallPtrSet<const PHINode *, 16> &PhiUsers) {
|
||||
for (const Use &U : V->uses()) {
|
||||
const User *UR = U.getUser();
|
||||
if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(UR)) {
|
||||
|
@@ -98,7 +98,7 @@ namespace {
|
||||
/// split the landing pad block after the landingpad instruction and jump
|
||||
/// to there.
|
||||
void forwardResume(ResumeInst *RI,
|
||||
SmallPtrSetImpl<LandingPadInst*> &InlinedLPads);
|
||||
SmallPtrSet<LandingPadInst*, 16> &InlinedLPads);
|
||||
|
||||
/// addIncomingPHIValuesFor - Add incoming-PHI values to the unwind
|
||||
/// destination block for the given basic block, using the values for the
|
||||
@@ -157,7 +157,7 @@ BasicBlock *InvokeInliningInfo::getInnerResumeDest() {
|
||||
/// branch. When there is more than one predecessor, we need to split the
|
||||
/// landing pad block after the landingpad instruction and jump to there.
|
||||
void InvokeInliningInfo::forwardResume(ResumeInst *RI,
|
||||
SmallPtrSetImpl<LandingPadInst*> &InlinedLPads) {
|
||||
SmallPtrSet<LandingPadInst*, 16> &InlinedLPads) {
|
||||
BasicBlock *Dest = getInnerResumeDest();
|
||||
BasicBlock *Src = RI->getParent();
|
||||
|
||||
|
@@ -1178,7 +1178,7 @@ static void changeToCall(InvokeInst *II) {
|
||||
}
|
||||
|
||||
static bool markAliveBlocks(BasicBlock *BB,
|
||||
SmallPtrSetImpl<BasicBlock*> &Reachable) {
|
||||
SmallPtrSet<BasicBlock*, 128> &Reachable) {
|
||||
|
||||
SmallVector<BasicBlock*, 128> Worklist;
|
||||
Worklist.push_back(BB);
|
||||
|
@@ -78,7 +78,7 @@ void llvm::appendToGlobalDtors(Module &M, Function *F, int Priority) {
|
||||
}
|
||||
|
||||
GlobalVariable *
|
||||
llvm::collectUsedGlobalVariables(Module &M, SmallPtrSetImpl<GlobalValue *> &Set,
|
||||
llvm::collectUsedGlobalVariables(Module &M, SmallPtrSet<GlobalValue *, 8> &Set,
|
||||
bool CompilerUsed) {
|
||||
const char *Name = CompilerUsed ? "llvm.compiler.used" : "llvm.used";
|
||||
GlobalVariable *GV = M.getGlobalVariable(Name);
|
||||
|
@@ -302,8 +302,8 @@ private:
|
||||
void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
|
||||
AllocaInfo &Info);
|
||||
void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
|
||||
const SmallPtrSetImpl<BasicBlock *> &DefBlocks,
|
||||
SmallPtrSetImpl<BasicBlock *> &LiveInBlocks);
|
||||
const SmallPtrSet<BasicBlock *, 32> &DefBlocks,
|
||||
SmallPtrSet<BasicBlock *, 32> &LiveInBlocks);
|
||||
void RenamePass(BasicBlock *BB, BasicBlock *Pred,
|
||||
RenamePassData::ValVector &IncVals,
|
||||
std::vector<RenamePassData> &Worklist);
|
||||
@@ -766,8 +766,8 @@ void PromoteMem2Reg::run() {
|
||||
/// inserted phi nodes would be dead).
|
||||
void PromoteMem2Reg::ComputeLiveInBlocks(
|
||||
AllocaInst *AI, AllocaInfo &Info,
|
||||
const SmallPtrSetImpl<BasicBlock *> &DefBlocks,
|
||||
SmallPtrSetImpl<BasicBlock *> &LiveInBlocks) {
|
||||
const SmallPtrSet<BasicBlock *, 32> &DefBlocks,
|
||||
SmallPtrSet<BasicBlock *, 32> &LiveInBlocks) {
|
||||
|
||||
// To determine liveness, we must iterate through the predecessors of blocks
|
||||
// where the def is live. Blocks are added to the worklist if we need to
|
||||
|
@@ -257,7 +257,7 @@ static unsigned ComputeSpeculationCost(const User *I, const DataLayout *DL) {
|
||||
/// V plus its non-dominating operands. If that cost is greater than
|
||||
/// CostRemaining, false is returned and CostRemaining is undefined.
|
||||
static bool DominatesMergePoint(Value *V, BasicBlock *BB,
|
||||
SmallPtrSetImpl<Instruction*> *AggressiveInsts,
|
||||
SmallPtrSet<Instruction*, 4> *AggressiveInsts,
|
||||
unsigned &CostRemaining,
|
||||
const DataLayout *DL) {
|
||||
Instruction *I = dyn_cast<Instruction>(V);
|
||||
|
Reference in New Issue
Block a user