[PATCH] D129948: [RISCV] Fold stack reload into sext.w by using lw instead of ld.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 17 13:43:10 PDT 2022


craig.topper updated this revision to Diff 445346.
craig.topper added a comment.

Add isSEXT_W helper.
Add check for big endian.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129948

Files:
  llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.h
  llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
  llvm/test/CodeGen/RISCV/stack-folding.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129948.445346.patch
Type: text/x-patch
Size: 7041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220717/9312729b/attachment.bin>


More information about the llvm-commits mailing list