[llvm] (WIP)(RFC)[MachineScheduler] A new approach to computing memory dependencies (PR #205689)

Valeriy Savchenko via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 26 02:43:39 PDT 2026


================
@@ -742,14 +697,13 @@ void ScheduleDAGInstrs::buildSchedGraph(AAResults *AA,
   // not share any common Value.
   Value2SUsMap Stores, Loads(1 /*TrueMemOrderLatency*/);
 
-  // Certain memory accesses are known to not alias any SU in Stores
-  // or Loads, and have therefore their own 'NonAlias'
-  // domain. E.g. spill / reload instructions never alias LLVM I/R
-  // Values. It would be nice to assume that this type of memory
-  // accesses always have a proper memory operand modelling, and are
-  // therefore never unanalyzable, but this is conservatively not
-  // done.
-  Value2SUsMap NonAliasStores, NonAliasLoads(1 /*TrueMemOrderLatency*/);
+  struct UnknownValueFrontier {
+    SUnit *SequencingStore = nullptr;
----------------
SavchenkoValeriy wrote:

Same goes to individual fields. I believe these are important concepts of this change.

https://github.com/llvm/llvm-project/pull/205689


More information about the llvm-commits mailing list