This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen][NFC] Add comment to `getCSRFirstUseCost`
Needs ReviewPublic

Authored by lkail on Sep 21 2021, 8:15 PM.

Details

Summary

From usage in RAGreedy::initializeCSRCost and AArch64RegisterInfo::getCSRFirstUseCost, this value is set assuming MachineBlockFrequencyInfo::getEntryFreq() is 1<<14. Add comment to clarify it so that other target can override it accordingly.

Diff Detail

Event Timeline

lkail created this revision.Sep 21 2021, 8:15 PM
lkail requested review of this revision.Sep 21 2021, 8:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2021, 8:15 PM
lkail edited the summary of this revision. (Show Details)Sep 23 2021, 5:16 AM
xgupta added a subscriber: xgupta.Sep 23 2021, 6:03 AM