File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1023,7 +1023,7 @@ struct ExternalAAWrapperPass : ImmutablePass {
10231023 // / particularly useful when the external AA can provide more precise results
10241024 // / than Basic AA so that Basic AA does not need to spend time recomputing
10251025 // / them.
1026- virtual bool runEarly () { return false ; }
1026+ bool RunEarly = false ;
10271027
10281028 void getAnalysisUsage (AnalysisUsage &AU) const override {
10291029 AU.setPreservesAll ();
Original file line number Diff line number Diff line change @@ -741,7 +741,7 @@ bool AAResultsWrapperPass::runOnFunction(Function &F) {
741741
742742 // Add any target-specific alias analyses that should be run early.
743743 auto *ExtWrapperPass = getAnalysisIfAvailable<ExternalAAWrapperPass>();
744- if (ExtWrapperPass && ExtWrapperPass->runEarly () && ExtWrapperPass->CB ) {
744+ if (ExtWrapperPass && ExtWrapperPass->RunEarly && ExtWrapperPass->CB ) {
745745 LLVM_DEBUG (dbgs () << " AAResults register Early ExternalAA: "
746746 << ExtWrapperPass->getPassName () << " \n " );
747747 ExtWrapperPass->CB (*this , F, *AAR);
@@ -777,7 +777,7 @@ bool AAResultsWrapperPass::runOnFunction(Function &F) {
777777
778778 // If available, run an external AA providing callback over the results as
779779 // well.
780- if (ExtWrapperPass && !ExtWrapperPass->runEarly () && ExtWrapperPass->CB ) {
780+ if (ExtWrapperPass && !ExtWrapperPass->RunEarly && ExtWrapperPass->CB ) {
781781 LLVM_DEBUG (dbgs () << " AAResults register Late ExternalAA: "
782782 << ExtWrapperPass->getPassName () << " \n " );
783783 ExtWrapperPass->CB (*this , F, *AAR);
Original file line number Diff line number Diff line change @@ -90,14 +90,14 @@ class NVPTXExternalAAWrapper : public ExternalAAWrapperPass {
9090public:
9191 static char ID;
9292
93- bool runEarly () override { return true ; }
94-
9593 NVPTXExternalAAWrapper ()
9694 : ExternalAAWrapperPass([](Pass &P, Function &, AAResults &AAR) {
9795 if (auto *WrapperPass =
9896 P.getAnalysisIfAvailable <NVPTXAAWrapperPass>())
9997 AAR.addAAResult (WrapperPass->getResult ());
100- }) {}
98+ }) {
99+ RunEarly = true ;
100+ }
101101
102102 StringRef getPassName () const override {
103103 return " NVPTX Address space based Alias Analysis Wrapper" ;
You can’t perform that action at this time.
0 commit comments