Skip to content

Commit

Permalink
[X86][CodeGen] Add missing BroadcastTable1 in X86MemUnfoldTable
Browse files Browse the repository at this point in the history
  • Loading branch information
KanRobert committed Jan 29, 2024
1 parent d833b9d commit d133ada
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/lib/Target/X86/X86InstrFoldTables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d133ada

Please sign in to comment.