File tree 1 file changed +6
-9
lines changed
llvm/lib/Transforms/Utils
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -728,11 +728,6 @@ namespace {
728
728
initializeLoopSimplifyPass (*PassRegistry::getPassRegistry ());
729
729
}
730
730
731
- DominatorTree *DT;
732
- LoopInfo *LI;
733
- ScalarEvolution *SE;
734
- AssumptionCache *AC;
735
-
736
731
bool runOnFunction (Function &F) override ;
737
732
738
733
void getAnalysisUsage (AnalysisUsage &AU) const override {
@@ -778,11 +773,13 @@ Pass *llvm::createLoopSimplifyPass() { return new LoopSimplify(); }
778
773
// /
779
774
bool LoopSimplify::runOnFunction (Function &F) {
780
775
bool Changed = false ;
781
- LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo ();
782
- DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree ();
776
+ LoopInfo * LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo ();
777
+ DominatorTree * DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree ();
783
778
auto *SEWP = getAnalysisIfAvailable<ScalarEvolutionWrapperPass>();
784
- SE = SEWP ? &SEWP->getSE () : nullptr ;
785
- AC = &getAnalysis<AssumptionCacheTracker>().getAssumptionCache (F);
779
+ ScalarEvolution *SE = SEWP ? &SEWP->getSE () : nullptr ;
780
+ AssumptionCache *AC =
781
+ &getAnalysis<AssumptionCacheTracker>().getAssumptionCache (F);
782
+
786
783
bool PreserveLCSSA = mustPreserveAnalysisID (LCSSAID);
787
784
#ifndef NDEBUG
788
785
if (PreserveLCSSA) {
You can’t perform that action at this time.
0 commit comments