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);