[llvm] [AArch64] Improve scheduling latency into Bundles (PR #86310)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 00:31:06 PDT 2024
================
@@ -235,7 +235,9 @@ class TargetSubtargetInfo : public MCSubtargetInfo {
// and UseOpIdx are the indices of the operands in Def and Use, respectively.
// Otherwise, either may be -1.
virtual void adjustSchedDependency(SUnit *Def, int DefOpIdx, SUnit *Use,
- int UseOpIdx, SDep &Dep) const {}
+ int UseOpIdx, SDep &Dep,
+ const TargetSchedModel *SchedModel) const {
----------------
davemgreen wrote:
Hi. Im not sure if holding state in the subtarget is better than passing the model over the interface. Otherwise there can be use-after-free issues and potentially using the incorrect model when it is not valid.
https://github.com/llvm/llvm-project/pull/86310
More information about the llvm-commits
mailing list