Re: [PATCH] Enable more optimization for 32-bit/64-bit shrd/shld with imm shift count.

2022-10-31 Thread Uros Bizjak via Gcc-patches
On Mon, Oct 31, 2022 at 2:25 AM liuhongt wrote: > > This patch doens't handle variable count since it require 5 insns to > be combined to get wanted pattern, but current pass_combine only > supports at most 4. > This patch doesn't handle 16-bit shrd/shld either. > > Ideally, we can avoid redundanc

[PATCH] Enable more optimization for 32-bit/64-bit shrd/shld with imm shift count.

2022-10-30 Thread liuhongt via Gcc-patches
This patch doens't handle variable count since it require 5 insns to be combined to get wanted pattern, but current pass_combine only supports at most 4. This patch doesn't handle 16-bit shrd/shld either. Ideally, we can avoid redundancy of *x86_64_shld_shrd_1_nozext/*x86_shld_shrd_1_nozext if mid