diff options
Diffstat (limited to 'contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/Scheduler.h')
-rw-r--r-- | contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/Scheduler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/Scheduler.h b/contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/Scheduler.h index 6c196757e571..0293364e26ef 100644 --- a/contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/Scheduler.h +++ b/contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/Scheduler.h @@ -267,9 +267,9 @@ public: // This routine performs a sanity check. This routine should only be called // when we know that 'IR' is not in the scheduler's instruction queues. void sanityCheck(const InstRef &IR) const { - assert(find(WaitSet, IR) == WaitSet.end() && "Already in the wait set!"); - assert(find(ReadySet, IR) == ReadySet.end() && "Already in the ready set!"); - assert(find(IssuedSet, IR) == IssuedSet.end() && "Already executing!"); + assert(!is_contained(WaitSet, IR) && "Already in the wait set!"); + assert(!is_contained(ReadySet, IR) && "Already in the ready set!"); + assert(!is_contained(IssuedSet, IR) && "Already executing!"); } #endif // !NDEBUG }; |