[all-commits] [llvm/llvm-project] b3d280: [X86] fold AND(X, SEXT(SETCC())) -> SELECT(SETCC(), ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Mar 19 07:53:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3d280b887780c04e89dc0214ac800d37bbb4009
      https://github.com/llvm/llvm-project/commit/b3d280b887780c04e89dc0214ac800d37bbb4009
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2025-03-19 (Wed, 19 Mar 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/gfni-lzcnt.ll
    M llvm/test/CodeGen/X86/vector-lzcnt-512.ll
    M llvm/test/CodeGen/X86/vector-shuffle-combining-avx512vbmi.ll

  Log Message:
  -----------
  [X86] fold AND(X,SEXT(SETCC())) -> SELECT(SETCC(),X,0) to support AVX512 predicated {k}{z} masks (#131788)

We already do this for the ANDNP(SEXT(SETCC()),X) equivalent pattern.

Fixes #109272



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list