[all-commits] [llvm/llvm-project] 641ed9: [X86] Handle undef/zero/ones cases after modifying...

Hongyu Chen via All-commits all-commits at lists.llvm.org
Mon Sep 15 04:02:30 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 641ed9f66fbc931f301dd123a08bcc2d3c83ee9d
      https://github.com/llvm/llvm-project/commit/641ed9f66fbc931f301dd123a08bcc2d3c83ee9d
  Author: Hongyu Chen <xxs_chy at outlook.com>
  Date:   2025-09-15 (Mon, 15 Sep 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/vector-shuffle-combining-avx2.ll

  Log Message:
  -----------
  [X86] Handle undef/zero/ones cases after modifying Ops and Masks (#158428)

Fixes https://github.com/llvm/llvm-project/issues/158415.
After `resolveTargetShuffleInputsAndMask` and other modifications on
`Ops` and `Mask`, unused inputs in `Ops` are erased, and may leave `Ops`
empty. This patch handles such cases before calling the final
`combineX86ShuffleChain`。



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