This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Add test case showing suboptimal codegen when loading unsigned char/short
ClosedPublic

Authored by hev on Jul 10 2023, 1:06 AM.

Details

Summary

Implementing isZextFree will allow ld.bu or ld.hu to be selected rather than ld.b+mask and ld.h+mask.

Signed-off-by: WANG Rui <wangrui@loongson.cn>

Diff Detail

Event Timeline

hev created this revision.Jul 10 2023, 1:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 10 2023, 1:06 AM
hev requested review of this revision.Jul 10 2023, 1:06 AM
xen0n accepted this revision.Jul 10 2023, 6:15 AM
This revision is now accepted and ready to land.Jul 10 2023, 6:15 AM
SixWeining accepted this revision.Jul 10 2023, 8:09 AM
hev updated this revision to Diff 539457.Jul 12 2023, 3:02 AM

Simplify test cases.