This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Use [MC]Register in register allocation
ClosedPublic

Authored by gjain on Nov 3 2020, 3:48 PM.

Diff Detail

Event Timeline

gjain created this revision.Nov 3 2020, 3:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 3 2020, 3:48 PM
gjain requested review of this revision.Nov 3 2020, 3:48 PM
mtrofin accepted this revision.Nov 3 2020, 3:57 PM

lgtm

llvm/lib/CodeGen/RegAllocGreedy.cpp
474

I can't tell what the notation is here on line 474 - is it a blank space, or?

(if you ran clang-format, it's probably fine)

687–688

nit: can you also change the assert to Reg.isVirtual()? so we can eventually get rid of the statics

This revision is now accepted and ready to land.Nov 3 2020, 3:57 PM
gjain updated this revision to Diff 302712.Nov 3 2020, 4:29 PM

Address comments

gjain marked an inline comment as done.Nov 3 2020, 4:29 PM
gjain added inline comments.
llvm/lib/CodeGen/RegAllocGreedy.cpp
474

Not sure what's happening here. I think it's just phabricator noting that 2 spaces were added for indentation. Note I run arc lint before putting up changes which I believe would do clang format etc.

This revision was landed with ongoing or failed builds.Nov 3 2020, 5:36 PM
This revision was automatically updated to reflect the committed changes.