Remove SCEVAAWrapperPass from createLegacyPMAAResults; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 9 Feb 2016 01:21:50 +0000 (01:21 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 9 Feb 2016 01:21:50 +0000 (01:21 +0000)
Summary:
createLegacyPMAAResults is only called by CGSCC and Module passes, so
the call to getAnalysisIfAvailable<SCEVAAWrapperPass>() never
succeeds (SCEVAAWrapperPass is a function pass).

Reviewers: chandlerc

Subscribers: mcrosier, llvm-commits

Differential Revision: http://reviews.llvm.org/D17009

llvm-svn: 260182

llvm/lib/Analysis/AliasAnalysis.cpp

index 972d846..8c06031 100644 (file)
@@ -530,8 +530,6 @@ AAResults llvm::createLegacyPMAAResults(Pass &P, Function &F,
     AAR.addAAResult(WrapperPass->getResult());
   if (auto *WrapperPass = P.getAnalysisIfAvailable<GlobalsAAWrapperPass>())
     AAR.addAAResult(WrapperPass->getResult());
-  if (auto *WrapperPass = P.getAnalysisIfAvailable<SCEVAAWrapperPass>())
-    AAR.addAAResult(WrapperPass->getResult());
   if (auto *WrapperPass = P.getAnalysisIfAvailable<CFLAAWrapperPass>())
     AAR.addAAResult(WrapperPass->getResult());