This is an archive of the discontinued LLVM Phabricator instance.

[ScheduleDAG] Fix removing edges with weak deps
ClosedPublic

Authored by kerbowa on Jan 22 2023, 9:58 PM.

Details

Summary

In SUnit::removePred edges are removed from the Preds and Succs lists before
updating the bookkeeping. This could result in incorrect values for
NumPreds/SuccsLeft and cause WeakPreds/SuccsLeft to underflow, since the
incorrect SDep will be used to update these values.

Diff Detail

Event Timeline

kerbowa created this revision.Jan 22 2023, 9:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 22 2023, 9:58 PM
kerbowa requested review of this revision.Jan 22 2023, 9:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 22 2023, 9:58 PM
This revision is now accepted and ready to land.Jan 23 2023, 10:28 AM
This revision was landed with ongoing or failed builds.Jan 25 2023, 10:06 AM
This revision was automatically updated to reflect the committed changes.