[llvm] d133ada - [X86][CodeGen] Add missing BroadcastTable1 in X86MemUnfoldTable
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 08:02:34 PST 2024
Author: Shengchen Kan
Date: 2024-01-30T00:02:18+08:00
New Revision: d133ada9460aad6d60393fb1260082e62d640500
URL: https://github.com/llvm/llvm-project/commit/d133ada9460aad6d60393fb1260082e62d640500
DIFF: https://github.com/llvm/llvm-project/commit/d133ada9460aad6d60393fb1260082e62d640500.diff
LOG: [X86][CodeGen] Add missing BroadcastTable1 in X86MemUnfoldTable
Added:
Modified:
llvm/lib/Target/X86/X86InstrFoldTables.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86InstrFoldTables.cpp b/llvm/lib/Target/X86/X86InstrFoldTables.cpp
index 2e865a3dced61b..bb0a4d54996f03 100644
--- a/llvm/lib/Target/X86/X86InstrFoldTables.cpp
+++ b/llvm/lib/Target/X86/X86InstrFoldTables.cpp
@@ -179,6 +179,10 @@ struct X86MemUnfoldTable {
addTableEntry(Entry, TB_INDEX_4 | TB_FOLDED_LOAD);
// Broadcast tables.
+ for (const X86FoldTableEntry &Entry : BroadcastTable1)
+ // Index 1, folded broadcast
+ addTableEntry(Entry, TB_INDEX_1 | TB_FOLDED_LOAD | TB_FOLDED_BCAST);
+
for (const X86FoldTableEntry &Entry : BroadcastTable2)
// Index 2, folded broadcast
addTableEntry(Entry, TB_INDEX_2 | TB_FOLDED_LOAD | TB_FOLDED_BCAST);
More information about the llvm-commits
mailing list