Re: [PATCH v3] x86: Extend the remove_redundant_vector pass

2025-06-23 Thread Hongtao Liu
On Thu, Jun 19, 2025 at 10:25 AM H.J. Lu wrote: > > Extend the remove_redundant_vector pass to handle vector broadcasts from > constant and variable scalars. When broadcasting from constants and > function arguments, we can place a single widest vector broadcast at > entry of the nearest common d

Re: [PATCH v3] x86: Extend the remove_redundant_vector pass

2025-06-23 Thread Hongtao Liu
On Mon, Jun 23, 2025 at 4:10 PM H.J. Lu wrote: > > On Mon, Jun 23, 2025 at 3:11 PM Hongtao Liu wrote: > > > > On Thu, Jun 19, 2025 at 10:25 AM H.J. Lu wrote: > > > > > > Extend the remove_redundant_vector pass to handle vector broadcasts from > > > constant and variable scalars. When broadcasti

Re: [PATCH v3] x86: Extend the remove_redundant_vector pass

2025-06-23 Thread H.J. Lu
On Mon, Jun 23, 2025 at 3:36 PM Hongtao Liu wrote: > > On Thu, Jun 19, 2025 at 10:25 AM H.J. Lu wrote: > > > > Extend the remove_redundant_vector pass to handle vector broadcasts from > > constant and variable scalars. When broadcasting from constants and > > function arguments, we can place a s

Re: [PATCH v3] x86: Extend the remove_redundant_vector pass

2025-06-23 Thread H.J. Lu
On Mon, Jun 23, 2025 at 3:11 PM Hongtao Liu wrote: > > On Thu, Jun 19, 2025 at 10:25 AM H.J. Lu wrote: > > > > Extend the remove_redundant_vector pass to handle vector broadcasts from > > constant and variable scalars. When broadcasting from constants and > > function arguments, we can place a s

Re: [PATCH v3] x86: Extend the remove_redundant_vector pass

2025-06-23 Thread Hongtao Liu
On Thu, Jun 19, 2025 at 10:25 AM H.J. Lu wrote: > > Extend the remove_redundant_vector pass to handle vector broadcasts from > constant and variable scalars. When broadcasting from constants and > function arguments, we can place a single widest vector broadcast at > entry of the nearest common d

[PATCH v3] x86: Extend the remove_redundant_vector pass

2025-06-18 Thread H.J. Lu
Extend the remove_redundant_vector pass to handle vector broadcasts from constant and variable scalars. When broadcasting from constants and function arguments, we can place a single widest vector broadcast at entry of the nearest common dominator for basic blocks with all uses since constants and