[PATCH] D150862: [RISCV][CodeGenPrepare] Select the optimal base offset for GEPs with large offset
Yingwei Zheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 18 04:42:02 PDT 2023
dtcxzyw created this revision.
dtcxzyw added reviewers: craig.topper, luke.
Herald added subscribers: jobnoorman, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
dtcxzyw requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
This patch splits the list of sorted distinct GEPs into groups and selects the optimal base offset for each group to ensure that each offset can fit into simm12 on RISC-V.
It also tries to align offsets when compressed load/store instructions are available.
It is an alternative to D150665 <https://reviews.llvm.org/D150665>.
Fixes https://github.com/llvm/llvm-project/issues/62734.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150862
Files:
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.h
llvm/test/CodeGen/RISCV/rvv/fixed-vector-strided-load-store-asm.ll
llvm/test/CodeGen/RISCV/split-offsets.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150862.523339.patch
Type: text/x-patch
Size: 28619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230518/fadcc61e/attachment.bin>
More information about the llvm-commits
mailing list