Hi! On Sat, Dec 24, 2022 at 10:58:41AM +0100, Jose E. Marchesi via Gcc-patches wrote: > Allright, so we have two short-term alternatives for at least remove the > possibility that GCC generates wrong code for valid C when the scheduler > is turned on: > > a) To disable sched1 in functions that call setjmp.
That is a heavy hammer. > b) To change deps_analyze_insn so instructions are not moved across > function calls before register allocation (!reload_completed). And this is way heavier still. OTOH, it is possible b) actually improves code (improves performance) in general (and maybe even without such a reload_completed check). > Both patches fix our particular use cases and are regression free in > aarch64-linux-gnu. Did you also check for performance regressions? Segher