We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ced6524 commit 52d4d82Copy full SHA for 52d4d82
llvm/lib/CodeGen/ScheduleDAG.cpp
@@ -77,8 +77,10 @@ void SUnit::addPred(const SDep &D) {
77
++N->NumSuccsLeft;
78
N->Succs.push_back(P);
79
Preds.push_back(D);
80
- this->setDepthDirty();
81
- N->setHeightDirty();
+ if (P.getLatency() != 0) {
+ this->setDepthDirty();
82
+ N->setHeightDirty();
83
+ }
84
}
85
86
/// removePred - This removes the specified edge as a pred of the current
@@ -112,8 +114,10 @@ void SUnit::removePred(const SDep &D) {
112
114
--NumPredsLeft;
113
115
if (!isScheduled)
116
--N->NumSuccsLeft;
117
118
119
120
121
return;
122
123
0 commit comments