mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-17 23:44:43 +00:00
Don't call setDepthDirty/setHeightDirty when adding an edge
with latency 0, since it doesn't affect the depth or height. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8526cc03a5
commit
a80c859df3
@ -77,8 +77,10 @@ void SUnit::addPred(const SDep &D) {
|
||||
++N->NumSuccsLeft;
|
||||
N->Succs.push_back(P);
|
||||
Preds.push_back(D);
|
||||
this->setDepthDirty();
|
||||
N->setHeightDirty();
|
||||
if (P.getLatency() != 0) {
|
||||
this->setDepthDirty();
|
||||
N->setHeightDirty();
|
||||
}
|
||||
}
|
||||
|
||||
/// removePred - This removes the specified edge as a pred of the current
|
||||
@ -112,8 +114,10 @@ void SUnit::removePred(const SDep &D) {
|
||||
--NumPredsLeft;
|
||||
if (!isScheduled)
|
||||
--N->NumSuccsLeft;
|
||||
this->setDepthDirty();
|
||||
N->setHeightDirty();
|
||||
if (P.getLatency() != 0) {
|
||||
this->setDepthDirty();
|
||||
N->setHeightDirty();
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user