[PATCH] D130302: [RISCV] Add sext.b/h and zext.b/h/w to RISCVInstrInfo::foldMemoryOperandImpl.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 21 14:02:55 PDT 2022


craig.topper created this revision.
craig.topper added reviewers: reames, asb, luismarques.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, frasercrmck, evandro, 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, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

We can always fold zext.b since it is just andi. The others require
Zba/Zbb.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130302

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130302.446630.patch
Type: text/x-patch
Size: 27528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220721/231b694e/attachment.bin>


More information about the llvm-commits mailing list