[PATCH] D46801: add getAA in ScheduleDAG for using in HazardRec

Atheel Massalha via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 12 23:48:34 PDT 2018


atheel.ma updated this revision to Diff 146501.

Repository:
  rL LLVM

https://reviews.llvm.org/D46801

Files:
  include/llvm/CodeGen/MachineScheduler.h
  lib/CodeGen/PostRASchedulerList.cpp


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() const { return AA; }
+
   private:
     /// Apply each ScheduleDAGMutation step in order.
     void postprocessDAG();
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() const { return AA; }
+
   // Returns LiveIntervals instance for use in DAG mutators and such.
   LiveIntervals *getLIS() const { return LIS; }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46801.146501.patch
Type: text/x-patch
Size: 984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180513/c6b175ad/attachment.bin>


More information about the llvm-commits mailing list