[PATCH] D92105: [RISCV] Add pre-emit pass to make more instructions compressible

Lewis Revill via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 05:17:46 PDT 2022


lewis-revill updated this revision to Diff 424881.
lewis-revill added a comment.

Rebased including an update from using `isShiftedUIntN` to the templated replacement `isShiftedUInt<N, S>`. Addressed the issue of inserting incorrect instructions to copy FP registers to compressible FP registers by using `FSGNJ_S` and `FSGNJ_D` instead. We note that we can't have an additional offset to adjust the resulting register by if it is an FP register.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92105/new/

https://reviews.llvm.org/D92105

Files:
  llvm/lib/Target/RISCV/CMakeLists.txt
  llvm/lib/Target/RISCV/RISCV.h
  llvm/lib/Target/RISCV/RISCVMakeCompressible.cpp
  llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
  llvm/test/CodeGen/RISCV/make-compressible-rv64.mir
  llvm/test/CodeGen/RISCV/make-compressible.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92105.424881.patch
Type: text/x-patch
Size: 78664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220425/56fcc422/attachment.bin>


More information about the llvm-commits mailing list