[llvm] [MacroFusion] Restricts pairs to have SDep::Data dependency only (PR #203793)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 15 03:42:09 PDT 2026
================
@@ -204,8 +204,8 @@ bool MacroFusion::scheduleAdjacentImpl(ScheduleDAGInstrs &DAG, SUnit &AnchorSU)
// Explorer for fusion candidates among the dependencies of the anchor instr.
for (SDep &Dep : AnchorSU.Preds) {
- // Ignore dependencies other than data or strong ordering.
- if (Dep.isWeak() || isHazard(Dep))
+ // Ignore dependencies other than data
+ if (Dep.getKind() != SDep::Data)
----------------
wangpc-pp wrote:
There are other places that have these checks, we should also change them.
https://github.com/llvm/llvm-project/pull/203793
More information about the llvm-commits
mailing list