This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Optimize additions with immediates
ClosedPublic

Authored by benshi001 on Mar 30 2023, 5:08 AM.

Diff Detail

Event Timeline

benshi001 created this revision.Mar 30 2023, 5:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2023, 5:08 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
benshi001 requested review of this revision.Mar 30 2023, 5:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2023, 5:08 AM
benshi001 added inline comments.Mar 30 2023, 5:11 AM
llvm/test/CodeGen/LoongArch/inline-asm-constraint-m.ll
125–126

This is also a win, since one register is saved.

xen0n accepted this revision.Mar 30 2023, 5:19 AM

Typo in title: "immediates".

Otherwise LGTM, thanks!

This revision is now accepted and ready to land.Mar 30 2023, 5:19 AM
benshi001 retitled this revision from [LoongArch] Optimize additions with immedates to [LoongArch] Optimize additions with immediates.Mar 30 2023, 5:24 AM
SixWeining accepted this revision.Mar 30 2023, 7:29 AM

LGTM. Thanks for the improvements.