[PATCH] D151311: [ScheduleDAG] Fix error assert Target
lennyxiao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 24 02:04:33 PDT 2023
clearlov7e77 created this revision.
clearlov7e77 added reviewers: kerbowa, rampitec.
Herald added subscribers: hiraditya, MatzeB.
Herald added a project: All.
clearlov7e77 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
[ScheduleDAG] Fix removing edges with weak deps
In SUnit::removePred,N->WeakSuccsLeft is reduced but WeakSuccsLeft is checked
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151311
Files:
llvm/lib/CodeGen/ScheduleDAG.cpp
Index: llvm/lib/CodeGen/ScheduleDAG.cpp
===================================================================
--- llvm/lib/CodeGen/ScheduleDAG.cpp
+++ llvm/lib/CodeGen/ScheduleDAG.cpp
@@ -201,7 +201,7 @@
}
if (!isScheduled) {
if (D.isWeak()) {
- assert(WeakSuccsLeft > 0 && "WeakSuccsLeft will underflow!");
+ assert(N->WeakSuccsLeft > 0 && "WeakSuccsLeft will underflow!");
--N->WeakSuccsLeft;
} else {
assert(N->NumSuccsLeft > 0 && "NumSuccsLeft will underflow!");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151311.525067.patch
Type: text/x-patch
Size: 505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230524/e2169132/attachment.bin>
More information about the llvm-commits
mailing list