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 41f40b9 commit 72ef6b3Copy full SHA for 72ef6b3
llvm/include/llvm/CodeGen/MachinePipeliner.h
@@ -468,9 +468,10 @@ class NodeSet {
468
SUnit *SuccSUnit = Succ.getDst();
469
if (V != SuccSUnit)
470
continue;
471
- if (SUnitToDistance[U] + Succ.getLatency() > SUnitToDistance[V]) {
472
- SUnitToDistance[V] = SUnitToDistance[U] + Succ.getLatency();
473
- }
+ unsigned &DU = SUnitToDistance[U];
+ unsigned &DV = SUnitToDistance[V];
+ if (DU + Succ.getLatency() > DV)
474
+ DV = DU + Succ.getLatency();
475
}
476
477
// Handle a back-edge in loop carried dependencies
0 commit comments