[llvm] cfb7026 - [X86][NFC] Rename lookupBroadcastFoldTable to lookupBroadcastFoldTableBySize
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 07:23:24 PST 2024
Author: Shengchen Kan
Date: 2024-01-29T23:23:07+08:00
New Revision: cfb702676cc181877482a282fe7e07109a24dc9d
URL: https://github.com/llvm/llvm-project/commit/cfb702676cc181877482a282fe7e07109a24dc9d
DIFF: https://github.com/llvm/llvm-project/commit/cfb702676cc181877482a282fe7e07109a24dc9d.diff
LOG: [X86][NFC] Rename lookupBroadcastFoldTable to lookupBroadcastFoldTableBySize
Address RKSimon's comments in #79761
Added:
Modified:
llvm/lib/Target/X86/X86FixupVectorConstants.cpp
llvm/lib/Target/X86/X86InstrFoldTables.cpp
llvm/lib/Target/X86/X86InstrFoldTables.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86FixupVectorConstants.cpp b/llvm/lib/Target/X86/X86FixupVectorConstants.cpp
index d4af94c7f92ee7e..037a745d632fbc9 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 63136af2295f4b5..2e865a3dced61bc 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 e3890d6aa8eb0f1..a27d868537cbcf8 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
More information about the llvm-commits
mailing list