Re: [PATCH v2] [x86][avx512] Optimize maskstore when mask is 0 or -1 in UNSPEC_MASKMOV

2024-07-17 Thread Uros Bizjak
On Thu, Jul 18, 2024 at 3:35 AM liuhongt wrote: > > > Also, in case the insn is deleted, do: > > > > emit_note (NOTE_INSN_DELETED); > > > > DONE; > > > > instead of leaving (const_int 0) in the stream. > > > > So, the above insn preparation statements should read: > > > > --cut here-- > > if (cons

[PATCH v2] [x86][avx512] Optimize maskstore when mask is 0 or -1 in UNSPEC_MASKMOV

2024-07-17 Thread liuhongt
> Also, in case the insn is deleted, do: > > emit_note (NOTE_INSN_DELETED); > > DONE; > > instead of leaving (const_int 0) in the stream. > > So, the above insn preparation statements should read: > > --cut here-- > if (constm1_operand (operands[2], mode)) > emit_move_insn (operands[0], operands[