summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/WindowScheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/WindowScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/WindowScheduler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/WindowScheduler.cpp b/llvm/lib/CodeGen/WindowScheduler.cpp
index 95c86a9ac266..2492dfc3ca55 100644
--- a/llvm/lib/CodeGen/WindowScheduler.cpp
+++ b/llvm/lib/CodeGen/WindowScheduler.cpp
@@ -679,8 +679,7 @@ MachineInstr *WindowScheduler::getOriMI(MachineInstr *NewMI) {
}
unsigned WindowScheduler::getOriStage(MachineInstr *OriMI, unsigned Offset) {
- assert(llvm::find(OriMIs, OriMI) != OriMIs.end() &&
- "Cannot find OriMI in OriMIs!");
+ assert(llvm::is_contained(OriMIs, OriMI) && "Cannot find OriMI in OriMIs!");
// If there is no instruction fold, all MI stages are 0.
if (Offset == SchedPhiNum)
return 0;