[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
================
@@ -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) {
+ if (llvm::all_of(Frontier.BaseObjects,
+ [=](ValueType Base) { return Base != V; })) {
+ IsSequencing = true;
+ break;
+ }
+ }
+
+ if (!Frontier.SequencingStore || Frontier.SeenSequencingLoad ||
----------------
SavchenkoValeriy wrote:
Can you please describe in a comment each of these conditions to enter this block and why any of them suffice.
https://github.com/llvm/llvm-project/pull/205689
More information about the llvm-commits
mailing list