Re: [x86 PATCH] Improve ix86_expand_int_movcc to allow condition (mask) sharing.

2023-01-03 Thread Uros Bizjak via Gcc-patches
On Mon, Jan 2, 2023 at 11:50 AM Roger Sayle wrote: > > > This patch modifies the way that ix86_expand_int_movcc generates RTL, > to allow the condition mask to be shared/reused between multiple > conditional move sequences. Such redundancy is common when RTL > if-conversion transforms non-trivial

[x86 PATCH] Improve ix86_expand_int_movcc to allow condition (mask) sharing.

2023-01-02 Thread Roger Sayle
This patch modifies the way that ix86_expand_int_movcc generates RTL, to allow the condition mask to be shared/reused between multiple conditional move sequences. Such redundancy is common when RTL if-conversion transforms non-trivial basic blocks. As a motivating example, consider the new test