On Wed, 31 Jan 2018, Wilco Dijkstra wrote: > The comparison order for SCHED_PRESSURE_MODEL is incorrect. If either > instruction is not in target_bb, the ordering is not well defined. To fix > this, give all instructions in target_bb the highest priority and sort all > other instructions behind it. This way instructions in target_bb will be > sorted using the pressure model, and instructions outside it will use > RFS_DEP_COUNT and/or RFS_TIE for their order.
This appears to be the same issue as PR 83459; please add rtl-optimization/83459 to ChangeLog if approved. > PR rlt-optimization/84068 > * haifa-sched.c (rank_for_schedule): Fix SCHED_PRESSURE_MODEL sorting. > > PR rlt-optimization/84068 Note typos in category name (s/rlt/rtl). Alexander