This is an archive of the discontinued LLVM Phabricator instance.

[LLDB][LoongArch] Optimize EmulateInstructionLoongArch related code
ClosedPublic

Authored by lh03061238 on Dec 23 2022, 1:43 AM.

Details

Summary

This is a code optimization patch that does not include feature additions
or deletions.

Diff Detail

Event Timeline

lh03061238 created this revision.Dec 23 2022, 1:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 23 2022, 1:43 AM
Herald added a subscriber: StephenFan. · View Herald Transcript
lh03061238 requested review of this revision.Dec 23 2022, 1:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 23 2022, 1:43 AM
SixWeining added inline comments.Dec 23 2022, 2:53 AM
lldb/source/Plugins/Instruction/LoongArch/EmulateInstructionLoongArch.cpp
202

return IsLoongArch64() ? EmulateBEQZ64(inst) : false;

lh03061238 added inline comments.Dec 23 2022, 6:20 PM
lldb/source/Plugins/Instruction/LoongArch/EmulateInstructionLoongArch.cpp
202

Will be modified,
thank you

Change (IsLoongArch64()) to IsLoongArch64() in some functions

SixWeining accepted this revision.Dec 25 2022, 5:44 PM

LGTM. Thanks.

This revision is now accepted and ready to land.Dec 25 2022, 5:44 PM