Skip to content

Commit b6e1707

Browse files
pthamminigcbot
authored andcommitted
Fix Typo
Fix Typo
1 parent 32e337f commit b6e1707

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

IGC/Compiler/Optimizer/SynchronizationObjectCoalescing.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ class SynchronizationObjectCoalescing : public llvm::FunctionPass {
339339
InstructionMask GetDefaultMemoryInstructionMask(const llvm::Instruction *pSourceInst) const;
340340

341341
////////////////////////////////////////////////////////////////////////
342-
bool IsSubsituteInstruction(const llvm::Instruction *pEvaluatedInst, const llvm::Instruction *pReferenceInst) const;
342+
bool IsSubstituteInstruction(const llvm::Instruction *pEvaluatedInst, const llvm::Instruction *pReferenceInst) const;
343343

344344
////////////////////////////////////////////////////////////////////////
345345
InstructionMask GetInstructionMask(const llvm::Instruction *pInst) const;
@@ -1394,7 +1394,7 @@ void SynchronizationObjectCoalescing::GetVisibleMemoryInstructions(
13941394

13951395
std::function<bool(const llvm::Instruction *)> IsBoundaryInst =
13961396
[this, pSourceInst](const llvm::Instruction *pEvaluatedInst) {
1397-
return IsSubsituteInstruction(pEvaluatedInst, pSourceInst);
1397+
return IsSubstituteInstruction(pEvaluatedInst, pSourceInst);
13981398
};
13991399

14001400
std::function<bool(const llvm::Instruction *)> IsMemoryInst =
@@ -1443,7 +1443,7 @@ void SynchronizationObjectCoalescing::GetAllUnsynchronizedMemoryInstructions(
14431443
std::vector<const llvm::Instruction *> &memoryInstructions) const {
14441444
std::function<bool(const llvm::Instruction *)> IsBoundaryInst =
14451445
[this, pSourceInst](const llvm::Instruction *pEvaluatedInst) {
1446-
return IsSubsituteInstruction(pEvaluatedInst, pSourceInst);
1446+
return IsSubstituteInstruction(pEvaluatedInst, pSourceInst);
14471447
};
14481448
auto GetBoundaries =
14491449
GetBoundaryFunc(m_OrderedFenceInstructionsInBasicBlockCache, m_InstIdxLookupTable, IsBoundaryInst);
@@ -1510,7 +1510,7 @@ InstructionMask SynchronizationObjectCoalescing::GetInstructionMask(const llvm::
15101510
llvm::DenseSet<const llvm::BasicBlock *> visitedBasicBlocks;
15111511
std::function<bool(const llvm::Instruction *)> IsBoundaryInst =
15121512
[this, pSourceInst](const llvm::Instruction *pEvaluatedInst) {
1513-
return IsSubsituteInstruction(pEvaluatedInst, pSourceInst);
1513+
return IsSubstituteInstruction(pEvaluatedInst, pSourceInst);
15141514
};
15151515
auto GetBoundaries = GetBoundaryFunc(IsFenceOperation(pSourceInst) ? m_OrderedFenceInstructionsInBasicBlockCache
15161516
: m_OrderedBarrierInstructionsInBasicBlockCache,
@@ -1832,7 +1832,7 @@ bool SynchronizationObjectCoalescing::IsRequiredForAtomicOperationsOrdering(cons
18321832
for (llvm::BasicBlock::const_iterator it = ++pSourceInst->getIterator(); it != pSourceInst->getParent()->end();
18331833
++it) {
18341834
const llvm::Instruction *pCurrInst = &(*it);
1835-
if (IsFenceOperation(pCurrInst) && IsSubsituteInstruction(pCurrInst, pSourceInst)) {
1835+
if (IsFenceOperation(pCurrInst) && IsSubstituteInstruction(pCurrInst, pSourceInst)) {
18361836
substituteFenceFound = true;
18371837
break;
18381838
}
@@ -1864,7 +1864,7 @@ SynchronizationObjectCoalescing::GetInstructionMask(const std::vector<const llvm
18641864
/// @param pEvaluatedInst the instruction which is evaluated if it can replace the reference one
18651865
/// @param pReferenceInst represents the reference instruction which is an object of the replacement
18661866
/// 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,
18681868
const llvm::Instruction *pReferenceInst) const {
18691869
if (IsUntypedMemoryFenceOperation(pEvaluatedInst) && IsUntypedMemoryFenceOperation(pReferenceInst)) {
18701870
const uint32_t commitEnableArg = 0;

0 commit comments

Comments
 (0)