If we lower, we need to legalize the wide shifts which
is costly.
This will improve the tests from https://reviews.llvm.org/D157415 too
Paths
| Differential D157677
[RISCV][GISel] Narrow G_SEXT_INREG to XLenLLT before lowering. ClosedPublic Authored by craig.topper on Aug 10 2023, 10:41 PM.
Details Summary If we lower, we need to legalize the wide shifts which This will improve the tests from https://reviews.llvm.org/D157415 too
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 14 2023, 2:25 PM Closed by commit rG9cf375b3101f: [RISCV][GISel] Narrow G_SEXT_INREG to XLenLLT before lowering. (authored by craig.topper). · Explain WhyAug 14 2023, 2:56 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 550100 llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-icmp.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-icmp.mir
|