This is an archive of the discontinued LLVM Phabricator instance.

[ScheduleDAG] Deal with already scheduled loads in ScheduleDAG.
ClosedPublic

Authored by niravd on May 5 2017, 8:36 AM.

Details

Summary

If we attempt to unfold an SUnit in ScheduleDAG that results in
finding an already scheduled load, we must should abort the
unfold as it will not improve scheduling.

This fixes PR32610.

Diff Detail

Repository
rL LLVM

Event Timeline

niravd created this revision.May 5 2017, 8:36 AM

Adding some more reviewers

Pinging again and adding comment to ease reviewer task.

lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
967 ↗(On Diff #97961)

For ease of review: these two line are the functional change. Everything else is just for cleanliness of code structure.

This revision was automatically updated to reflect the committed changes.