This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Optimize multiplication with immediates
ClosedPublic

Authored by benshi001 on Apr 1 2023, 10:19 PM.

Details

Summary

Optimize multiplication with some specific immediates to
a pair of alsl.

Diff Detail

Event Timeline

benshi001 created this revision.Apr 1 2023, 10:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2023, 10:19 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
benshi001 requested review of this revision.Apr 1 2023, 10:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2023, 10:19 PM
xen0n added inline comments.Apr 2 2023, 12:51 AM
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
953–964

Diff damage?

benshi001 marked an inline comment as done.Apr 2 2023, 1:11 AM
benshi001 added inline comments.
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
953–964

There may be something wrong in my previous commit, https://github.com/llvm/llvm-project/commit/734c213004305bfca04b5906a3c591735f43a020

The indent is wrong. And I have to fix it here.

benshi001 marked an inline comment as done.Apr 2 2023, 1:50 AM
SixWeining accepted this revision.Apr 2 2023, 6:07 AM
This revision is now accepted and ready to land.Apr 2 2023, 6:07 AM
This revision was automatically updated to reflect the committed changes.