Fix for the buildbot failure. Now-unused private field TTI deleted.
authorHideki Saito <hideki.saito@intel.com>
Tue, 10 Apr 2018 00:38:36 +0000 (00:38 +0000)
committerHideki Saito <hideki.saito@intel.com>
Tue, 10 Apr 2018 00:38:36 +0000 (00:38 +0000)
llvm-svn: 329649

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

index 04c8dfa..51be86f 100644 (file)
@@ -1516,11 +1516,10 @@ public:
   LoopVectorizationLegality(
       Loop *L, PredicatedScalarEvolution &PSE, DominatorTree *DT,
       TargetLibraryInfo *TLI, AliasAnalysis *AA, Function *F,
-      const TargetTransformInfo *TTI,
       std::function<const LoopAccessInfo &(Loop &)> *GetLAA, LoopInfo *LI,
       OptimizationRemarkEmitter *ORE, LoopVectorizationRequirements *R,
       LoopVectorizeHints *H, DemandedBits *DB, AssumptionCache *AC)
-      : TheLoop(L), PSE(PSE), TLI(TLI), TTI(TTI), DT(DT), GetLAA(GetLAA),
+      : TheLoop(L), PSE(PSE), TLI(TLI), DT(DT), GetLAA(GetLAA),
         ORE(ORE), Requirements(R), Hints(H), DB(DB), AC(AC) {}
 
   /// ReductionList contains the reduction descriptors for all
@@ -1683,9 +1682,6 @@ private:
   /// Target Library Info.
   TargetLibraryInfo *TLI;
 
-  /// Target Transform Info
-  const TargetTransformInfo *TTI;
-
   /// Dominator Tree.
   DominatorTree *DT;
 
@@ -8338,7 +8334,7 @@ bool LoopVectorizePass::processLoop(Loop *L) {
 
   // Check if it is legal to vectorize the loop.
   LoopVectorizationRequirements Requirements(*ORE);
-  LoopVectorizationLegality LVL(L, PSE, DT, TLI, AA, F, TTI, GetLAA, LI, ORE,
+  LoopVectorizationLegality LVL(L, PSE, DT, TLI, AA, F, GetLAA, LI, ORE,
                                 &Requirements, &Hints, DB, AC);
   if (!LVL.canVectorize()) {
     DEBUG(dbgs() << "LV: Not vectorizing: Cannot prove legality.\n");