Re: [PATCH] Improved RTL expansion of 1LL << x.

2023-10-14 Thread Jeff Law
On 10/14/23 17:32, Roger Sayle wrote: This patch improves the initial RTL expanded for double word shifts on architectures with conditional moves, so that later passes don't need to clean-up unnecessary and/or unused instructions. Consider the general case, x << y, which is expanded well

[PATCH] Improved RTL expansion of 1LL << x.

2023-10-14 Thread Roger Sayle
This patch improves the initial RTL expanded for double word shifts on architectures with conditional moves, so that later passes don't need to clean-up unnecessary and/or unused instructions. Consider the general case, x << y, which is expanded well as: t1 = y & 32; t2 = 0;