[llvm] 719c46b - [FunctionAttrs] Fix typo in `getArgumentAccessInfo` name (NFC)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 18 03:44:50 PST 2025
Author: Antonio Frighetto
Date: 2025-02-18T12:42:37+01:00
New Revision: 719c46b35958782622e300696fbe6af6549b4cdc
URL: https://github.com/llvm/llvm-project/commit/719c46b35958782622e300696fbe6af6549b4cdc
DIFF: https://github.com/llvm/llvm-project/commit/719c46b35958782622e300696fbe6af6549b4cdc.diff
LOG: [FunctionAttrs] Fix typo in `getArgumentAccessInfo` name (NFC)
Added:
Modified:
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index a66d7ce9c3f50..02b0fcb3981a7 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -651,9 +651,9 @@ struct ArgumentUsesSummary {
SmallDenseMap<const BasicBlock *, UsesPerBlockInfo, 16> UsesPerBlock;
};
-ArgumentAccessInfo getArgmentAccessInfo(const Instruction *I,
- const ArgumentUse &ArgUse,
- const DataLayout &DL) {
+ArgumentAccessInfo getArgumentAccessInfo(const Instruction *I,
+ const ArgumentUse &ArgUse,
+ const DataLayout &DL) {
auto GetTypeAccessRange =
[&DL](Type *Ty,
std::optional<int64_t> Offset) -> std::optional<ConstantRange> {
@@ -805,7 +805,7 @@ ArgumentUsesSummary collectArgumentUsesPerBlock(Argument &A, Function &F) {
}
auto *I = cast<Instruction>(U);
- bool HasWrite = UpdateUseInfo(I, getArgmentAccessInfo(I, ArgUse, DL));
+ bool HasWrite = UpdateUseInfo(I, getArgumentAccessInfo(I, ArgUse, DL));
Result.HasAnyWrite |= HasWrite;
More information about the llvm-commits
mailing list