[all-commits] [llvm/llvm-project] 969c68: [X86] fold select to mask instructions.
Luo, Yuanke via All-commits
all-commits at lists.llvm.org
Fri May 26 06:53:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 969c686e54501e71123f102cff280ab8fba52e06
https://github.com/llvm/llvm-project/commit/969c686e54501e71123f102cff280ab8fba52e06
Author: Luo, Yuanke <yuanke.luo at intel.com>
Date: 2023-05-26 (Fri, 26 May 2023)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/X86/avx512f-vec-test-testn.ll
M llvm/test/CodeGen/X86/combine-rotates.ll
M llvm/test/CodeGen/X86/paddus.ll
M llvm/test/CodeGen/X86/sat-add.ll
M llvm/test/CodeGen/X86/vector-bo-select-avx512.ll
M llvm/test/CodeGen/X86/vector-bo-select.ll
Log Message:
-----------
[X86] fold select to mask instructions.
When avx512 is available the lhs operand of select instruction can be
folded with mask instruction, while the rhs operand can't. This patch is
to commute the lhs and rhs of the select instruction to create the
opportunity of folding.
Differential Revision: https://reviews.llvm.org/D151535
More information about the All-commits
mailing list