@@ -339,7 +339,7 @@ class SynchronizationObjectCoalescing : public llvm::FunctionPass {
339
339
InstructionMask GetDefaultMemoryInstructionMask (const llvm::Instruction *pSourceInst) const ;
340
340
341
341
// //////////////////////////////////////////////////////////////////////
342
- bool IsSubsituteInstruction (const llvm::Instruction *pEvaluatedInst, const llvm::Instruction *pReferenceInst) const ;
342
+ bool IsSubstituteInstruction (const llvm::Instruction *pEvaluatedInst, const llvm::Instruction *pReferenceInst) const ;
343
343
344
344
// //////////////////////////////////////////////////////////////////////
345
345
InstructionMask GetInstructionMask (const llvm::Instruction *pInst) const ;
@@ -1394,7 +1394,7 @@ void SynchronizationObjectCoalescing::GetVisibleMemoryInstructions(
1394
1394
1395
1395
std::function<bool (const llvm::Instruction *)> IsBoundaryInst =
1396
1396
[this , pSourceInst](const llvm::Instruction *pEvaluatedInst) {
1397
- return IsSubsituteInstruction (pEvaluatedInst, pSourceInst);
1397
+ return IsSubstituteInstruction (pEvaluatedInst, pSourceInst);
1398
1398
};
1399
1399
1400
1400
std::function<bool (const llvm::Instruction *)> IsMemoryInst =
@@ -1443,7 +1443,7 @@ void SynchronizationObjectCoalescing::GetAllUnsynchronizedMemoryInstructions(
1443
1443
std::vector<const llvm::Instruction *> &memoryInstructions) const {
1444
1444
std::function<bool (const llvm::Instruction *)> IsBoundaryInst =
1445
1445
[this , pSourceInst](const llvm::Instruction *pEvaluatedInst) {
1446
- return IsSubsituteInstruction (pEvaluatedInst, pSourceInst);
1446
+ return IsSubstituteInstruction (pEvaluatedInst, pSourceInst);
1447
1447
};
1448
1448
auto GetBoundaries =
1449
1449
GetBoundaryFunc (m_OrderedFenceInstructionsInBasicBlockCache, m_InstIdxLookupTable, IsBoundaryInst);
@@ -1510,7 +1510,7 @@ InstructionMask SynchronizationObjectCoalescing::GetInstructionMask(const llvm::
1510
1510
llvm::DenseSet<const llvm::BasicBlock *> visitedBasicBlocks;
1511
1511
std::function<bool (const llvm::Instruction *)> IsBoundaryInst =
1512
1512
[this , pSourceInst](const llvm::Instruction *pEvaluatedInst) {
1513
- return IsSubsituteInstruction (pEvaluatedInst, pSourceInst);
1513
+ return IsSubstituteInstruction (pEvaluatedInst, pSourceInst);
1514
1514
};
1515
1515
auto GetBoundaries = GetBoundaryFunc (IsFenceOperation (pSourceInst) ? m_OrderedFenceInstructionsInBasicBlockCache
1516
1516
: m_OrderedBarrierInstructionsInBasicBlockCache,
@@ -1832,7 +1832,7 @@ bool SynchronizationObjectCoalescing::IsRequiredForAtomicOperationsOrdering(cons
1832
1832
for (llvm::BasicBlock::const_iterator it = ++pSourceInst->getIterator (); it != pSourceInst->getParent ()->end ();
1833
1833
++it) {
1834
1834
const llvm::Instruction *pCurrInst = &(*it);
1835
- if (IsFenceOperation (pCurrInst) && IsSubsituteInstruction (pCurrInst, pSourceInst)) {
1835
+ if (IsFenceOperation (pCurrInst) && IsSubstituteInstruction (pCurrInst, pSourceInst)) {
1836
1836
substituteFenceFound = true ;
1837
1837
break ;
1838
1838
}
@@ -1864,7 +1864,7 @@ SynchronizationObjectCoalescing::GetInstructionMask(const std::vector<const llvm
1864
1864
// / @param pEvaluatedInst the instruction which is evaluated if it can replace the reference one
1865
1865
// / @param pReferenceInst represents the reference instruction which is an object of the replacement
1866
1866
// / and it means that this instruction must be equal or weaker than the evaluated one.
1867
- bool SynchronizationObjectCoalescing::IsSubsituteInstruction (const llvm::Instruction *pEvaluatedInst,
1867
+ bool SynchronizationObjectCoalescing::IsSubstituteInstruction (const llvm::Instruction *pEvaluatedInst,
1868
1868
const llvm::Instruction *pReferenceInst) const {
1869
1869
if (IsUntypedMemoryFenceOperation (pEvaluatedInst) && IsUntypedMemoryFenceOperation (pReferenceInst)) {
1870
1870
const uint32_t commitEnableArg = 0 ;
0 commit comments