[all-commits] [llvm/llvm-project] b0790e: [DAG] combineVSelectWithAllOnesOrZeros - fold sele...
woruyu via All-commits
all-commits at lists.llvm.org
Tue Jul 8 06:46:03 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b0790e04a370b8dbee9f839983641820c1b1b844
https://github.com/llvm/llvm-project/commit/b0790e04a370b8dbee9f839983641820c1b1b844
Author: woruyu <99597449+woruyu at users.noreply.github.com>
Date: 2025-07-08 (Tue, 08 Jul 2025)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/AArch64/sve-fixed-length-shuffles.ll
M llvm/test/CodeGen/AArch64/vselect-constants.ll
Log Message:
-----------
[DAG] combineVSelectWithAllOnesOrZeros - fold select Cond, 0, x -> and not(Cond), x (#147472)
### Summary
This patch extends the work from
[#145298](https://github.com/llvm/llvm-project/pull/145298) by removing
the now-unnecessary X86-specific combineVSelectWithLastZeros logic. That
combine is now correctly and more generally handled in the
target-independent combineVSelectWithAllOnesOrZeros.
This simplifies the X86 DAG combine logic and avoids duplication.
Fixes: [#144513](https://github.com/llvm/llvm-project/issues/144513)
Related for reference:
[#146831](https://github.com/llvm/llvm-project/pull/146831)
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