[PATCH] D17009: Remove SCEVAAWrapperPass from createLegacyPMAAResults; NFC

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 8 16:39:28 PST 2016


sanjoy created this revision.
sanjoy added a reviewer: chandlerc.
sanjoy added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.

createLegacyPMAAResults is only called by CGSCC and Module passes, so
the call to getAnalysisIfAvailable<SCEVAAWrapperPass>() never
succeeds (SCEVAAWrapperPass is a function pass).

http://reviews.llvm.org/D17009

Files:
  lib/Analysis/AliasAnalysis.cpp

Index: lib/Analysis/AliasAnalysis.cpp
===================================================================
--- lib/Analysis/AliasAnalysis.cpp
+++ lib/Analysis/AliasAnalysis.cpp
@@ -530,8 +530,6 @@
     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());
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17009.47272.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160209/fcc146bd/attachment.bin>


More information about the llvm-commits mailing list