[PATCH] D123267: [RISCV] Post-RA merge base offset pass

Luís Marques via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 16:13:01 PDT 2022


luismarques created this revision.
luismarques added reviewers: craig.topper, jrtc27, asb, sameer.abuasal.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, frasercrmck, evandro, apazos, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
luismarques requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

This is a stopgap solution until something more along the lines of D123264 <https://reviews.llvm.org/D123264> and D123265 <https://reviews.llvm.org/D123265> gets accepted. It conservatively does the folding of the low part of LLA addresses into the offset of load instructions. In my benchmarks it worked better than I was expecting, so maybe this is worth considering if the other patches get stalled?


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123267

Files:
  llvm/lib/Target/RISCV/RISCV.h
  llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp
  llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
  llvm/test/CodeGen/RISCV/O3-pipeline.ll
  llvm/test/CodeGen/RISCV/codemodel-lowering.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123267.420778.patch
Type: text/x-patch
Size: 5968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220406/79ff8698/attachment.bin>


More information about the llvm-commits mailing list