This is an archive of the discontinued LLVM Phabricator instance.

[NFC][Regalloc] Factor out eviction decision from eviction attempt
ClosedPublic

Authored by mtrofin on Nov 15 2021, 2:22 PM.

Details

Summary

This splits tryEvict into a const tryFindEvictionCandidate, which
attempts to find a candidate, and the actual eviction (should the former
be successful)

The newly introduced tryFindEvictionCandidate will move subsequently
into the RegAllocEvictionAdvisor.

RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-November/153639.html

Diff Detail

Event Timeline

mtrofin created this revision.Nov 15 2021, 2:22 PM
mtrofin requested review of this revision.Nov 15 2021, 2:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2021, 2:22 PM
qcolombet accepted this revision.Nov 16 2021, 9:45 AM
This revision is now accepted and ready to land.Nov 16 2021, 9:45 AM