Index: include/llvm/CodeGen/MachineScheduler.h =================================================================== --- include/llvm/CodeGen/MachineScheduler.h +++ include/llvm/CodeGen/MachineScheduler.h @@ -302,6 +302,9 @@ return SchedImpl->doMBBSchedRegionsTopDown(); } + // Returns AliasAnalysis instance for use in Hazard Recognizer. + AliasAnalysis* getAA() { return AA; } + // Returns LiveIntervals instance for use in DAG mutators and such. LiveIntervals *getLIS() const { return LIS; } Index: lib/CodeGen/PostRASchedulerList.cpp =================================================================== --- lib/CodeGen/PostRASchedulerList.cpp +++ lib/CodeGen/PostRASchedulerList.cpp @@ -184,6 +184,9 @@ /// void finishBlock() override; + // Returns AliasAnalysis instance for use in Hazard Recognizer. + AliasAnalysis* getAA() { return AA; } + private: /// Apply each ScheduleDAGMutation step in order. void postprocessDAG();