Re:[pushed] [PATCH] LoongArch: Adjust insn patterns for better combine

2025-01-01 Thread Lulu Cheng
Pushed to r15-6490. 在 2024/12/30 上午10:38, Guo Jie 写道: For some instruction patterns with commutative operands, the order of operands needs to be adjusted to match the rules. gcc/ChangeLog: * config/loongarch/loongarch.md (bytepick_d__rev): New combiner. (bstrpick_alsl_p

[PATCH] LoongArch: Adjust insn patterns for better combine

2024-12-29 Thread Guo Jie
For some instruction patterns with commutative operands, the order of operands needs to be adjusted to match the rules. gcc/ChangeLog: * config/loongarch/loongarch.md (bytepick_d__rev): New combiner. (bstrpick_alsl_paired): Reorder input operands. gcc/testsuite/ChangeLog: