diff --git a/llvm/lib/Target/X86/X86FixupVectorConstants.cpp b/llvm/lib/Target/X86/X86FixupVectorConstants.cpp index d4af94c7f92ee7..037a745d632fbc 100644 --- a/llvm/lib/Target/X86/X86FixupVectorConstants.cpp +++ b/llvm/lib/Target/X86/X86FixupVectorConstants.cpp @@ -406,14 +406,14 @@ bool X86FixupVectorConstantsPass::processInstruction(MachineFunction &MF, unsigned OpNoBcst32 = 0, OpNoBcst64 = 0; if (OpSrc32) { if (const X86FoldTableEntry *Mem2Bcst = - llvm::lookupBroadcastFoldTable(OpSrc32, 32)) { + llvm::lookupBroadcastFoldTableBySize(OpSrc32, 32)) { OpBcst32 = Mem2Bcst->DstOp; OpNoBcst32 = Mem2Bcst->Flags & TB_INDEX_MASK; } } if (OpSrc64) { if (const X86FoldTableEntry *Mem2Bcst = - llvm::lookupBroadcastFoldTable(OpSrc64, 64)) { + llvm::lookupBroadcastFoldTableBySize(OpSrc64, 64)) { OpBcst64 = Mem2Bcst->DstOp; OpNoBcst64 = Mem2Bcst->Flags & TB_INDEX_MASK; } diff --git a/llvm/lib/Target/X86/X86InstrFoldTables.cpp b/llvm/lib/Target/X86/X86InstrFoldTables.cpp index 63136af2295f4b..2e865a3dced61b 100644 --- a/llvm/lib/Target/X86/X86InstrFoldTables.cpp +++ b/llvm/lib/Target/X86/X86InstrFoldTables.cpp @@ -305,7 +305,7 @@ static bool matchBroadcastSize(const X86FoldTableEntry &Entry, } const X86FoldTableEntry * -llvm::lookupBroadcastFoldTable(unsigned MemOp, unsigned BroadcastBits) { +llvm::lookupBroadcastFoldTableBySize(unsigned MemOp, unsigned BroadcastBits) { static X86BroadcastFoldTable BroadcastFoldTable; auto &Table = BroadcastFoldTable.Table; for (auto I = llvm::lower_bound(Table, MemOp); diff --git a/llvm/lib/Target/X86/X86InstrFoldTables.h b/llvm/lib/Target/X86/X86InstrFoldTables.h index e3890d6aa8eb0f..a27d868537cbcf 100644 --- a/llvm/lib/Target/X86/X86InstrFoldTables.h +++ b/llvm/lib/Target/X86/X86InstrFoldTables.h @@ -49,8 +49,8 @@ const X86FoldTableEntry *lookupUnfoldTable(unsigned MemOp); // Look up the broadcast folding table entry for this instruction from // the regular memory instruction. -const X86FoldTableEntry *lookupBroadcastFoldTable(unsigned MemOp, - unsigned BroadcastBits); +const X86FoldTableEntry *lookupBroadcastFoldTableBySize(unsigned MemOp, + unsigned BroadcastBits); } // namespace llvm