[llvm] [SandboxVec][Scheduler] Boilerplate and initial implementation. (PR #112449)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 16:30:57 PDT 2024
================
@@ -286,7 +290,9 @@ void DependencyGraph::createNewNodes(const Interval<Instruction> &NewInterval) {
MemDGNodeIntervalBuilder::getBotMemDGNode(TopInterval, *this);
MemDGNode *LinkBotN =
MemDGNodeIntervalBuilder::getTopMemDGNode(BotInterval, *this);
- assert(LinkTopN->comesBefore(LinkBotN) && "Wrong order!");
+ assert((LinkTopN == nullptr || LinkBotN == nullptr ||
+ LinkTopN->comesBefore(LinkBotN)) &&
+ "Wrong order!");
----------------
vporpo wrote:
I think they can be null if there are no no MemDGNodes in the interva.
https://github.com/llvm/llvm-project/pull/112449
More information about the llvm-commits
mailing list