[PATCH] D98101: [RISCV] Enable the LocalStackSlotAllocation pass support

LiDongjin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 18:12:34 PST 2023


LiDongjin updated this revision to Diff 487026.
LiDongjin added a comment.

Just change the isFrameOffsetLegal like:

  return (Offset <= maxIntN(12)) && (Offset >= minIntN(12));


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98101

Files:
  llvm/lib/Target/RISCV/RISCVFrameLowering.h
  llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
  llvm/lib/Target/RISCV/RISCVRegisterInfo.h
  llvm/test/CodeGen/RISCV/local-stack-slot-allocation.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98101.487026.patch
Type: text/x-patch
Size: 8847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230107/68b7a1de/attachment.bin>


More information about the llvm-commits mailing list