Richard Biener <rguent...@suse.de> writes:
> On Mon, 14 Jul 2025, Richard Sandiford wrote:
>
>> Richard Biener <rguent...@suse.de> writes:
>> > For loop masking we need to mask a mask AND operation with the loop
>> > mask.  The following makes sure we have a corresponding mask
>> > available.  There's no good way to distinguish loop masking from
>> > len masking here, so assume we have recorded a mask for the operands
>> > mask producers.
>> >
>> > Bootstrap and regtest running on x86_64-unknown-linux-gnu.
>> >
>> >    PR tree-optimization/121059
>> >    * tree-vect-stmts.cc (vectorizable_operation): Record a
>> >    loop mask for mask AND operations.
>> >
>> >    * gcc.dg/vect/pr121059.c: New testcase.
>> 
>> Please could you revert this?  It's not the right fix.  The point of the
>> code is to opportunistically reuse loop masks that are needed by other
>> operations.  It isn't supposed to record new loop masks itself.
>
> Reverted.  I'll try to find some cycles in the next day to test the
> alternative.

Thanks!  And sorry that the intent isn't described well.

Richard

Reply via email to