Implement isSExtCheaperThanZExt.
Signed-off-by: WANG Rui <wangrui@loongson.cn>
Paths
| Differential D154919
[LoongArch] Implement isSExtCheaperThanZExt ClosedPublic Authored by hev on Jul 10 2023, 10:39 PM.
Details Summary Implement isSExtCheaperThanZExt. Signed-off-by: WANG Rui <wangrui@loongson.cn>
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Jul 24 2023, 3:04 AM SixWeining removed a parent revision: D154918: [LoongArch] Add test case showing suboptimal codegen when zero extending.Jul 24 2023, 6:33 PM This revision was landed with ongoing or failed builds.Jul 24 2023, 6:46 PM Closed by commit rGe7c9a99dfe21: [LoongArch] Implement isSExtCheaperThanZExt (authored by hev, committed by SixWeining). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 543780 llvm/lib/Target/LoongArch/LoongArchISelLowering.h
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/test/CodeGen/LoongArch/atomicrmw-uinc-udec-wrap.ll
llvm/test/CodeGen/LoongArch/duplicate-returns-for-tailcall.ll
llvm/test/CodeGen/LoongArch/get-setcc-result-type.ll
llvm/test/CodeGen/LoongArch/ir-instruction/atomic-cmpxchg.ll
llvm/test/CodeGen/LoongArch/ir-instruction/br.ll
llvm/test/CodeGen/LoongArch/jump-table.ll
llvm/test/CodeGen/LoongArch/nomerge.ll
llvm/test/CodeGen/LoongArch/sext-cheaper-than-zext.ll
llvm/test/CodeGen/LoongArch/shrinkwrap.ll
llvm/test/CodeGen/LoongArch/spill-ra-without-kill.ll
llvm/test/CodeGen/LoongArch/tail-calls.ll
|
Here. This sign extension instruction should be removed.