As it says in Passes.cpp about post RA scheduling pass insertion:
...
Ideally it wouldn't be part of the standard pass pipeline, and the target would just add
a PostRA scheduling pass wherever it wants.
...
With this comment in mind, I suspect that there may be some potential broader redesign of
command line options / subtarget methods awating, but this works for now.
Does anybody have an opinion / better suggestion, or is this acceptable?
Motivation:
To allow the use of the PostMachineScheduler at an arbitrary (later)
point while not running the PostRAScheduler, it was necessary to add a
new method TargetSubtargetInfo::customPostRAScheduling(), otherwise
the scheduler will immediately abort.
Any target that wants to insert the PostMachineScheduler pass at a
custom place should override this method to return true.
Add space after first ;