[all-commits] [llvm/llvm-project] 90e08c: [LoongArch] Add test case showing suboptimal codeg...
hev via All-commits
all-commits at lists.llvm.org
Mon Jul 24 02:50:07 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 90e08c260060b3cb0df31735117fd7d4331d9c64
https://github.com/llvm/llvm-project/commit/90e08c260060b3cb0df31735117fd7d4331d9c64
Author: WANG Rui <wangrui at loongson.cn>
Date: 2023-07-24 (Mon, 24 Jul 2023)
Changed paths:
A llvm/test/CodeGen/LoongArch/zext-with-load-is-free.ll
Log Message:
-----------
[LoongArch] Add test case showing suboptimal codegen when loading unsigned char/short
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 at loongson.cn>
Reviewed By: SixWeining, xen0n
Differential Revision: https://reviews.llvm.org/D154818
Commit: 9c21f9554114d00cda0d022f3e5a8d8fa6ddbe90
https://github.com/llvm/llvm-project/commit/9c21f9554114d00cda0d022f3e5a8d8fa6ddbe90
Author: WANG Rui <wangrui at loongson.cn>
Date: 2023-07-24 (Mon, 24 Jul 2023)
Changed paths:
M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
M llvm/lib/Target/LoongArch/LoongArchISelLowering.h
M llvm/test/CodeGen/LoongArch/zext-with-load-is-free.ll
Log Message:
-----------
[LoongArch] Implement isZextFree
This returns true for 8-bit and 16-bit loads, allowing ld.bu/ld.hu to be selected and avoiding unnecessary masks.
Signed-off-by: WANG Rui <wangrui at loongson.cn>
Reviewed By: SixWeining, xen0n
Differential Revision: https://reviews.llvm.org/D154819
Compare: https://github.com/llvm/llvm-project/compare/899aaffcbc3a...9c21f9554114
More information about the All-commits
mailing list