This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Remove getBidirectionalReasonRank
ClosedPublic

Authored by rampitec on Mar 2 2017, 4:03 PM.

Details

Summary

This method inverts the Reason field of a scheduling candidate.
It does right comparison between RegCritical and RegExcess, but
everything else is broken. In fact it can prefer less strong reason
such as Weak over RegCritical because Weak > -RegCritical.

The CandReason enum is properly sorted, so just remove artificial
ranking.

Diff Detail

Repository
rL LLVM

Event Timeline

rampitec created this revision.Mar 2 2017, 4:03 PM
rampitec updated this revision to Diff 91432.Mar 10 2017, 4:07 PM

Rebased to master, updated tests.

arsenm accepted this revision.Mar 10 2017, 4:12 PM

LGTM

This revision is now accepted and ready to land.Mar 10 2017, 4:12 PM
This revision was automatically updated to reflect the committed changes.