[llvm] r372577 - CriticalAntiDepBreaker - Assert that we've found the bottom of the critical path. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 03:42:47 PDT 2019
Author: rksimon
Date: Mon Sep 23 03:42:47 2019
New Revision: 372577
URL: http://llvm.org/viewvc/llvm-project?rev=372577&view=rev
Log:
CriticalAntiDepBreaker - Assert that we've found the bottom of the critical path. NFCI.
Silences static analyzer null dereference warnings.
Modified:
llvm/trunk/lib/CodeGen/CriticalAntiDepBreaker.cpp
Modified: llvm/trunk/lib/CodeGen/CriticalAntiDepBreaker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CriticalAntiDepBreaker.cpp?rev=372577&r1=372576&r2=372577&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CriticalAntiDepBreaker.cpp (original)
+++ llvm/trunk/lib/CodeGen/CriticalAntiDepBreaker.cpp Mon Sep 23 03:42:47 2019
@@ -457,6 +457,7 @@ BreakAntiDependencies(const std::vector<
if (!Max || SU->getDepth() + SU->Latency > Max->getDepth() + Max->Latency)
Max = SU;
}
+ assert(Max && "Failed to find bottom of the critical path");
#ifndef NDEBUG
{
More information about the llvm-commits
mailing list