Forward the scheduled state from the single pred MBB, as they are belong to the the same window from pipeline view.
Diff Detail
Event Timeline
llvm/include/llvm/CodeGen/MachineScheduler.h | ||
---|---|---|
228 | Do you mean Return true if scheduled state is saved successfully before leaving the MBB? | |
234 | Does pred mean predecessor? I think it is best to use the full word for code documentation. | |
234 | Maybe this is more clear? /// Return predecessor if MBB have only a single predecessor. |
llvm/include/llvm/CodeGen/MachineScheduler.h | ||
---|---|---|
304 | IIUC this would drop the way to specify this via the scheduling policy and could change behavior for existing policies around. It might make sense to have state forwarding imply top down here (SchedImpl->doMBBSchedRegionsTopDown() || MF.getSubtarget().forwardScheduledState()) | |
llvm/include/llvm/CodeGen/TargetSubtargetInfo.h | ||
197 | Is there a benefit of putting this setting in here, rather than in the scheduling policy, like similar settings? Unless I am missing something, I think it would be more suitable in the scheduling policy, where we already have similar options. |
Do you mean Return true if scheduled state is saved successfully before leaving the MBB?