diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h index 3577f96e7461..44cbfae6b238 100644 --- a/llvm/include/llvm/Transforms/IPO/Attributor.h +++ b/llvm/include/llvm/Transforms/IPO/Attributor.h @@ -4489,9 +4489,9 @@ struct AAPointerInfo : public AbstractAttribute { /// Call \p CB on all accesses that might interfere with \p LI and return true /// if all such accesses were known and the callback returned true for all of /// them, false otherwise. - virtual bool forallInterfearingAccesses( + virtual bool forallInterferingAccesses( LoadInst &LI, function_ref CB) const = 0; - virtual bool forallInterfearingAccesses( + virtual bool forallInterferingAccesses( StoreInst &SI, function_ref CB) const = 0; /// This function should return true if the type of the \p AA is AAPointerInfo diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp index 0d76f4e421b7..b5c128cf2081 100644 --- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp @@ -1008,8 +1008,8 @@ protected: return *It == Before ? ChangeStatus::UNCHANGED : ChangeStatus::CHANGED; } - /// See AAPointerInfo::forallInterfearingAccesses. - bool forallInterfearingAccesses( + /// See AAPointerInfo::forallInterferingAccesses. + bool forallInterferingAccesses( Instruction &I, function_ref CB) const { if (!isValidState()) @@ -1068,15 +1068,15 @@ struct AAPointerInfoImpl return AAPointerInfo::manifest(A); } - bool forallInterfearingAccesses( + bool forallInterferingAccesses( LoadInst &LI, function_ref CB) const override { - return State::forallInterfearingAccesses(LI, CB); + return State::forallInterferingAccesses(LI, CB); } - bool forallInterfearingAccesses( + bool forallInterferingAccesses( StoreInst &SI, function_ref CB) const override { - return State::forallInterfearingAccesses(SI, CB); + return State::forallInterferingAccesses(SI, CB); } ChangeStatus translateAndAddCalleeState(Attributor &A, @@ -5181,7 +5181,7 @@ struct AAValueSimplifyImpl : AAValueSimplify { auto &PI = A.getAAFor(AA, IRPosition::value(*Obj), DepClassTy::REQUIRED); - if (!PI.forallInterfearingAccesses(L, CheckAccess)) + if (!PI.forallInterferingAccesses(L, CheckAccess)) return false; } return true;