[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:40 PDT 2026
================
@@ -945,60 +881,116 @@ void ScheduleDAGInstrs::buildSchedGraph(AAResults *AA,
if (MI.mayStore()) {
if (!ObjsFound) {
- // An unknown store depends on all stores and loads.
- addChainDependencies(SU, Stores);
- addChainDependencies(SU, NonAliasStores);
- addChainDependencies(SU, Loads);
- addChainDependencies(SU, NonAliasLoads);
+ UnknownValueFrontier &Frontier =
+ Frontiers[0 /* TODO get address spaces for SU */];
+
+ bool IsSequencing = false;
+ for (const ValueType V : Objs) {
----------------
SavchenkoValeriy wrote:
This looks like an important part of this algorithm. Please add a comment describing why we use this condition, why it is enough, and what are potential blindspots.
https://github.com/llvm/llvm-project/pull/205689
More information about the llvm-commits
mailing list