The patch https://reviews.llvm.org/D61248 add the scheduling state forward infrastructure, and the patch https://reviews.llvm.org/D59480 add the sched state structure to keep the scheduling state. This patch bases on these two patches, and enable the scheduling state forward for PostGenericScheduler.
Then, enable it for powerpc target.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
It is not easy. We could easily get some tests that have different code sequence if enable the fwd scheduling, however, it is not easy to explain why, and if that makes sense. Because, we have so many heuristic that works together to get the final order. Anyway, I will try my best to cook one, Thank you for this suggestion!