Re: [PATCH] sched-deps: respect deps->readonly in macro-fusion (PR 84566)

2018-04-11 Thread Vladimir Makarov
On 04/11/2018 06:19 AM, Andrey Belevantsev wrote: On 10.04.2018 13:40, Alexander Monakov wrote: Hi, this fixes a simple "regression" under the qsort_chk umbrella: sched-deps analysis has deps->readonly flag, but macro-fusion code does not respect it and mutates instructions. This breaks an as

Re: [PATCH] sched-deps: respect deps->readonly in macro-fusion (PR 84566)

2018-04-11 Thread Andrey Belevantsev
On 10.04.2018 13:40, Alexander Monakov wrote: > Hi, > > this fixes a simple "regression" under the qsort_chk umbrella: sched-deps > analysis has deps->readonly flag, but macro-fusion code does not respect it > and mutates instructions. This breaks an assumption in sel_rank_for_schedule > and manif

[PATCH] sched-deps: respect deps->readonly in macro-fusion (PR 84566)

2018-04-10 Thread Alexander Monakov
Hi, this fixes a simple "regression" under the qsort_chk umbrella: sched-deps analysis has deps->readonly flag, but macro-fusion code does not respect it and mutates instructions. This breaks an assumption in sel_rank_for_schedule and manifests as qsort checking error. Since sched_macro_fuse_insn