Skip to content

Commit

Permalink
Fix assert in SynchronizationObjectCoalescing
Browse files Browse the repository at this point in the history
Treat `EndOfThreadOperation` as a non atomic operation.
  • Loading branch information
mmerecki authored and igcbot committed Sep 18, 2023
1 parent 345b526 commit f03e37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IGC/Compiler/Optimizer/SynchronizationObjectCoalescing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ enum InstructionMask : uint32_t
EndOfThreadOperation = (1 << 9),
};
constexpr InstructionMask AllNoAtomicMask =
InstructionMask{ ((1 << 9) - 1) & ~InstructionMask::AtomicOperation };
InstructionMask{ ((EndOfThreadOperation << 1) - 1) & ~InstructionMask::AtomicOperation };

inline constexpr InstructionMask operator|(InstructionMask a, InstructionMask b)
{
Expand Down

0 comments on commit f03e37e

Please sign in to comment.