Forward the scheduled state from the single pred MBB, as they are belong to the the same window from pipeline view.
Do you mean Return true if scheduled state is saved successfully before leaving the MBB?
Does pred mean predecessor? I think it is best to use the full word for code documentation.
Maybe this is more clear?
/// Return predecessor if MBB have only a single predecessor.
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())
|197 ↗||(On Diff #197051)|
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.