mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Repace SmallPtrSet with SmallPtrSetImpl in function arguments to avoid needing to mention the size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -788,7 +788,7 @@ private:
|
||||
/// Return true if all of the instructions in the block can be speculatively
|
||||
/// executed. \p SafePtrs is a list of addresses that are known to be legal
|
||||
/// and we know that we can read from them without segfault.
|
||||
bool blockCanBePredicated(BasicBlock *BB, SmallPtrSet<Value *, 8>& SafePtrs);
|
||||
bool blockCanBePredicated(BasicBlock *BB, SmallPtrSetImpl<Value *> &SafePtrs);
|
||||
|
||||
/// Returns True, if 'Phi' is the kind of reduction variable for type
|
||||
/// 'Kind'. If this is a reduction variable, it adds it to ReductionList.
|
||||
@ -3546,7 +3546,7 @@ static Type* getWiderType(const DataLayout &DL, Type *Ty0, Type *Ty1) {
|
||||
/// \brief Check that the instruction has outside loop users and is not an
|
||||
/// identified reduction variable.
|
||||
static bool hasOutsideLoopUser(const Loop *TheLoop, Instruction *Inst,
|
||||
SmallPtrSet<Value *, 4> &Reductions) {
|
||||
SmallPtrSetImpl<Value *> &Reductions) {
|
||||
// Reduction instructions are allowed to have exit users. All other
|
||||
// instructions must not have external users.
|
||||
if (!Reductions.count(Inst))
|
||||
@ -4889,7 +4889,7 @@ bool LoopVectorizationLegality::canVectorizeMemory() {
|
||||
}
|
||||
|
||||
static bool hasMultipleUsesOf(Instruction *I,
|
||||
SmallPtrSet<Instruction *, 8> &Insts) {
|
||||
SmallPtrSetImpl<Instruction *> &Insts) {
|
||||
unsigned NumUses = 0;
|
||||
for(User::op_iterator Use = I->op_begin(), E = I->op_end(); Use != E; ++Use) {
|
||||
if (Insts.count(dyn_cast<Instruction>(*Use)))
|
||||
@ -4901,7 +4901,7 @@ static bool hasMultipleUsesOf(Instruction *I,
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool areAllUsesIn(Instruction *I, SmallPtrSet<Instruction *, 8> &Set) {
|
||||
static bool areAllUsesIn(Instruction *I, SmallPtrSetImpl<Instruction *> &Set) {
|
||||
for(User::op_iterator Use = I->op_begin(), E = I->op_end(); Use != E; ++Use)
|
||||
if (!Set.count(dyn_cast<Instruction>(*Use)))
|
||||
return false;
|
||||
@ -5234,7 +5234,7 @@ bool LoopVectorizationLegality::blockNeedsPredication(BasicBlock *BB) {
|
||||
}
|
||||
|
||||
bool LoopVectorizationLegality::blockCanBePredicated(BasicBlock *BB,
|
||||
SmallPtrSet<Value *, 8>& SafePtrs) {
|
||||
SmallPtrSetImpl<Value *> &SafePtrs) {
|
||||
for (BasicBlock::iterator it = BB->begin(), e = BB->end(); it != e; ++it) {
|
||||
// We might be able to hoist the load.
|
||||
if (it->mayReadFromMemory()) {
|
||||
|
Reference in New Issue
Block a user