This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Tidy up ARMBaseRegisterInfo implementation. NFC
ClosedPublic

Authored by javed.absar on Jul 7 2017, 3:54 AM.

Details

Summary

This patch attempts to clean up and simplify ARMBaseRegisterInfo implementation a bit.

Diff Detail

Repository
rL LLVM

Event Timeline

javed.absar created this revision.Jul 7 2017, 3:54 AM
fhahn added a subscriber: fhahn.Jul 7 2017, 4:10 AM
fhahn accepted this revision.Jul 7 2017, 4:17 AM

Looks like a NFC, maybe address the style fix before committing.

lib/Target/ARM/ARMBaseRegisterInfo.cpp
662 ↗(On Diff #105615)

I think there should be a space after &&

This revision is now accepted and ready to land.Jul 7 2017, 4:17 AM

Thanks Florian. I will wait a bit for Renato/Diana to comment before committing, in case they have more comments/suggestions.

javed.absar retitled this revision from [ARM] Tidy up ARMBaseRegisterInfo implementation to [ARM] Tidy up ARMBaseRegisterInfo implementation. NFC.Jul 7 2017, 5:22 AM
rovka accepted this revision.Jul 7 2017, 5:26 AM

LGTM, thanks!

rovka added a comment.Jul 7 2017, 5:27 AM

Actually, I do have one nit :)

lib/Target/ARM/ARMBaseRegisterInfo.cpp
199 ↗(On Diff #105615)

While you're at it, you could also move markSuperRegs on its own line, it looks weird like this.

Good catch. Thanks. Will fix these and commit.

This revision was automatically updated to reflect the committed changes.