Hi Jeff, > I'm aware of the restriction. But this is not the place to tackle that > problem. THe work from Artimey a year or so ago will scurry around and > find the two fusible insns for this case and bring them together late in > RTL pipeline. If that's not working, then you should debug that > problem, Artemiy's dep_fusion pass was introduced to move insn's together where prev's results' only use is curr. e.g. ´slli rd,rs; srli rd,rd´ or ´mul rd,rs1,rs2; add rd,rd,rs3´. This doesn't apply here as both instructions share inputs but are unrelated in their outputs.
Perhaps Jin Ma's riscv_sched_reorder_fusion should be extended to handle fusible pairs that are presented in the wrong order in the ready list to be able to match. As far as I know, there currently nothing that handles this. > not introduce SCHED_GROUP_P or priority stuff during RTL expansion. I wasn't suggesting to change anything during expansion, but to bump the priority of the highpart insn during scheduling to enforce the order. > Fusion is an optimization, not a correctness issue. While we don't want > to miss fusions, doing so isn't fatal. I would carve this out of the > patch and get the other stuff fixed up and integrated since the rest > looks good and likely provides some benefit on your design. Then come > back to this one issue separately and address whatever problems we need to. Sure, ofcourse. I'm not sure it will do anything useful like that, we'll try and see. Thanks! Michiel
