diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-12-25 17:35:41 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-04-06 20:13:06 +0000 | 
| commit | cb14a3fe5122c879eae1fb480ed7ce82a699ddb6 (patch) | |
| tree | b983a613c35ece61d561b5a9ef9cd66419f6c7fb /contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp | |
| parent | 3d68ee6cbdb244de9fab1df8a2525d2fa592571e (diff) | |
| parent | 99aabd70801bd4bc72c4942747f6d62c675112f5 (diff) | |
Diffstat (limited to 'contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp | 12 | 
1 files changed, 4 insertions, 8 deletions
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp b/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp index ab4c33c9e976..f73ddfee2b90 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp @@ -296,28 +296,24 @@ SUnit *ScheduleDAGFast::CopyAndMoveSuccessors(SUnit *SU) {        if (isNewLoad)          AddPred(LoadSU, ChainPred);      } -    for (unsigned i = 0, e = LoadPreds.size(); i != e; ++i) { -      const SDep &Pred = LoadPreds[i]; +    for (const SDep &Pred : LoadPreds) {        RemovePred(SU, Pred);        if (isNewLoad) {          AddPred(LoadSU, Pred);        }      } -    for (unsigned i = 0, e = NodePreds.size(); i != e; ++i) { -      const SDep &Pred = NodePreds[i]; +    for (const SDep &Pred : NodePreds) {        RemovePred(SU, Pred);        AddPred(NewSU, Pred);      } -    for (unsigned i = 0, e = NodeSuccs.size(); i != e; ++i) { -      SDep D = NodeSuccs[i]; +    for (SDep D : NodeSuccs) {        SUnit *SuccDep = D.getSUnit();        D.setSUnit(SU);        RemovePred(SuccDep, D);        D.setSUnit(NewSU);        AddPred(SuccDep, D);      } -    for (unsigned i = 0, e = ChainSuccs.size(); i != e; ++i) { -      SDep D = ChainSuccs[i]; +    for (SDep D : ChainSuccs) {        SUnit *SuccDep = D.getSUnit();        D.setSUnit(SU);        RemovePred(SuccDep, D);  | 
