Skip to content

Commit cfb7026

Browse files
committed
[X86][NFC] Rename lookupBroadcastFoldTable to lookupBroadcastFoldTableBySize
Address RKSimon's comments in llvm#79761
1 parent 8b429fc commit cfb7026

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

llvm/lib/Target/X86/X86FixupVectorConstants.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,14 +406,14 @@ bool X86FixupVectorConstantsPass::processInstruction(MachineFunction &MF,
406406
unsigned OpNoBcst32 = 0, OpNoBcst64 = 0;
407407
if (OpSrc32) {
408408
if (const X86FoldTableEntry *Mem2Bcst =
409-
llvm::lookupBroadcastFoldTable(OpSrc32, 32)) {
409+
llvm::lookupBroadcastFoldTableBySize(OpSrc32, 32)) {
410410
OpBcst32 = Mem2Bcst->DstOp;
411411
OpNoBcst32 = Mem2Bcst->Flags & TB_INDEX_MASK;
412412
}
413413
}
414414
if (OpSrc64) {
415415
if (const X86FoldTableEntry *Mem2Bcst =
416-
llvm::lookupBroadcastFoldTable(OpSrc64, 64)) {
416+
llvm::lookupBroadcastFoldTableBySize(OpSrc64, 64)) {
417417
OpBcst64 = Mem2Bcst->DstOp;
418418
OpNoBcst64 = Mem2Bcst->Flags & TB_INDEX_MASK;
419419
}

llvm/lib/Target/X86/X86InstrFoldTables.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ static bool matchBroadcastSize(const X86FoldTableEntry &Entry,
305305
}
306306

307307
const X86FoldTableEntry *
308-
llvm::lookupBroadcastFoldTable(unsigned MemOp, unsigned BroadcastBits) {
308+
llvm::lookupBroadcastFoldTableBySize(unsigned MemOp, unsigned BroadcastBits) {
309309
static X86BroadcastFoldTable BroadcastFoldTable;
310310
auto &Table = BroadcastFoldTable.Table;
311311
for (auto I = llvm::lower_bound(Table, MemOp);

llvm/lib/Target/X86/X86InstrFoldTables.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ const X86FoldTableEntry *lookupUnfoldTable(unsigned MemOp);
4949

5050
// Look up the broadcast folding table entry for this instruction from
5151
// the regular memory instruction.
52-
const X86FoldTableEntry *lookupBroadcastFoldTable(unsigned MemOp,
53-
unsigned BroadcastBits);
52+
const X86FoldTableEntry *lookupBroadcastFoldTableBySize(unsigned MemOp,
53+
unsigned BroadcastBits);
5454

5555
} // namespace llvm
5656

0 commit comments

Comments
 (0)