[all-commits] [llvm/llvm-project] 594ebe: [X86] combineSelect - move vselect(cond, pshufb(x)...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Jun 24 02:50:50 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 594ebe63406b1deaf1c4be86c8c7f4c6d634fa08
      https://github.com/llvm/llvm-project/commit/594ebe63406b1deaf1c4be86c8c7f4c6d634fa08
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2025-06-24 (Tue, 24 Jun 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [X86] combineSelect - move vselect(cond, pshufb(x), pshufb(y)) -> or(pshufb(x), pshufb(y)) fold (#145475)

Move the OR(PSHUFB(),PSHUFB()) fold to reuse an existing
createShuffleMaskFromVSELECT result and ensure it is performed before
the combineX86ShufflesRecursively combine to prevent some hasOneUse
failures noticed in #133947 (combineX86ShufflesRecursively still
unnecessarily widens vectors in several locations).



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