[llvm] 02a275c - [X86][CodeGen] Add entries for TB_BCAST_SH in getBroadcastOpcode
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 30 05:01:52 PST 2024
Author: Shengchen Kan
Date: 2024-01-30T21:01:31+08:00
New Revision: 02a275cca166546e32153997e4c800763ba7fc85
URL: https://github.com/llvm/llvm-project/commit/02a275cca166546e32153997e4c800763ba7fc85
DIFF: https://github.com/llvm/llvm-project/commit/02a275cca166546e32153997e4c800763ba7fc85.diff
LOG: [X86][CodeGen] Add entries for TB_BCAST_SH in getBroadcastOpcode
Added:
Modified:
llvm/lib/Target/X86/X86InstrInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp
index 1adaf097bcbf..99dba8d41ac8 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/llvm/lib/Target/X86/X86InstrInfo.cpp
@@ -8150,6 +8150,8 @@ static unsigned getBroadcastOpcode(const X86FoldTableEntry *I,
VPBROADCASTDZrm)
CASE_BCAST_TYPE_OPC(TB_BCAST_Q, VPBROADCASTQZ128rm, VPBROADCASTQZ256rm,
VPBROADCASTQZrm)
+ CASE_BCAST_TYPE_OPC(TB_BCAST_SH, VPBROADCASTWZ128rm, VPBROADCASTWZ256rm,
+ VPBROADCASTWZrm)
CASE_BCAST_TYPE_OPC(TB_BCAST_SS, VBROADCASTSSZ128rm, VBROADCASTSSZ256rm,
VBROADCASTSSZrm)
CASE_BCAST_TYPE_OPC(TB_BCAST_SD, VMOVDDUPZ128rm, VBROADCASTSDZ256rm,
More information about the llvm-commits
mailing list