git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202155
91177308-0d34-0410-b5e6-
96231b3b80d8
FnSetType FnSet;
/// DataLayout for more accurate GEP comparisons. May be NULL.
FnSetType FnSet;
/// DataLayout for more accurate GEP comparisons. May be NULL.
/// Whether or not the target supports global aliases.
bool HasGlobalAliases;
/// Whether or not the target supports global aliases.
bool HasGlobalAliases;
typedef SmallPtrSet<Value *, 16> ValueSet;
typedef SmallVector<StoreInst *, 8> StoreList;
typedef SmallPtrSet<Value *, 16> ValueSet;
typedef SmallVector<StoreInst *, 8> StoreList;
- BoUpSLP(Function *Func, ScalarEvolution *Se, DataLayout *Dl,
+ BoUpSLP(Function *Func, ScalarEvolution *Se, const DataLayout *Dl,
TargetTransformInfo *Tti, AliasAnalysis *Aa, LoopInfo *Li,
DominatorTree *Dt) :
F(Func), SE(Se), DL(Dl), TTI(Tti), AA(Aa), LI(Li), DT(Dt),
TargetTransformInfo *Tti, AliasAnalysis *Aa, LoopInfo *Li,
DominatorTree *Dt) :
F(Func), SE(Se), DL(Dl), TTI(Tti), AA(Aa), LI(Li), DT(Dt),
// Analysis and block reference.
Function *F;
ScalarEvolution *SE;
// Analysis and block reference.
Function *F;
ScalarEvolution *SE;
TargetTransformInfo *TTI;
AliasAnalysis *AA;
LoopInfo *LI;
TargetTransformInfo *TTI;
AliasAnalysis *AA;
LoopInfo *LI;
TargetTransformInfo *TTI;
AliasAnalysis *AA;
LoopInfo *LI;
TargetTransformInfo *TTI;
AliasAnalysis *AA;
LoopInfo *LI;
/// \brief Try to find a reduction tree.
bool matchAssociativeReduction(PHINode *Phi, BinaryOperator *B,
/// \brief Try to find a reduction tree.
bool matchAssociativeReduction(PHINode *Phi, BinaryOperator *B,
+ const DataLayout *DL) {
assert((!Phi ||
std::find(Phi->op_begin(), Phi->op_end(), B) != Phi->op_end()) &&
"Thi phi needs to use the binary operator");
assert((!Phi ||
std::find(Phi->op_begin(), Phi->op_end(), B) != Phi->op_end()) &&
"Thi phi needs to use the binary operator");