No need to cache this unused variable.
authorEric Christopher <echristo@gmail.com>
Tue, 14 Oct 2014 23:58:51 +0000 (23:58 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 14 Oct 2014 23:58:51 +0000 (23:58 +0000)
Patch by Ehsan Akhgari.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219749 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/LoopVectorize.cpp

index f3bd96c028c7412ac1d8ca575d2860df90c1e47c..f117a23b82461badd97afb41dc0c79db43159d30 100644 (file)
@@ -889,7 +889,7 @@ public:
                              AssumptionTracker *AT, const Function *F,
                              const LoopVectorizeHints *Hints)
       : TheLoop(L), SE(SE), LI(LI), Legal(Legal), TTI(TTI), DL(DL), TLI(TLI),
                              AssumptionTracker *AT, const Function *F,
                              const LoopVectorizeHints *Hints)
       : TheLoop(L), SE(SE), LI(LI), Legal(Legal), TTI(TTI), DL(DL), TLI(TLI),
-        AT(AT), TheFunction(F), Hints(Hints) {
+        TheFunction(F), Hints(Hints) {
     CodeMetrics::collectEphemeralValues(L, AT, EphValues);
   }
 
     CodeMetrics::collectEphemeralValues(L, AT, EphValues);
   }
 
@@ -977,8 +977,6 @@ private:
   const DataLayout *DL;
   /// Target Library Info.
   const TargetLibraryInfo *TLI;
   const DataLayout *DL;
   /// Target Library Info.
   const TargetLibraryInfo *TLI;
-  /// Tracker for @llvm.assume.
-  AssumptionTracker *AT;
   const Function *TheFunction;
   // Loop Vectorize Hint.
   const LoopVectorizeHints *Hints;
   const Function *TheFunction;
   // Loop Vectorize Hint.
   const LoopVectorizeHints *Hints;