This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Optimize 32-bit addition with ALSL_W on LoongArch64
ClosedPublic

Authored by benshi001 on Apr 2 2023, 10:20 PM.

Details

Summary

Optimize 32-bit x+(y<<i) to (ALSL_W y, x, i) on LoongArch64,
in which i is in [1, 2, 3, 4].

Diff Detail

Event Timeline

benshi001 created this revision.Apr 2 2023, 10:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2023, 10:20 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
benshi001 requested review of this revision.Apr 2 2023, 10:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2023, 10:20 PM
SixWeining accepted this revision.Apr 2 2023, 10:23 PM

LGTM. Thanks.

This revision is now accepted and ready to land.Apr 2 2023, 10:23 PM
xen0n accepted this revision.Apr 2 2023, 10:37 PM