[PATCH] D150177: [RISCV] Enable signed truncation check transforms for i8

Yingwei Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 9 00:15:36 PDT 2023


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

This patch enables signed truncation check transforms for i8 on rv32 when XVT is i64 and Zbb is enabled.

It is a small improvement of D149977 <https://reviews.llvm.org/D149977>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150177

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/lack-of-signed-truncation-check.ll
  llvm/test/CodeGen/RISCV/signed-truncation-check.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150177.520601.patch
Type: text/x-patch
Size: 6522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230509/01dd72b9/attachment.bin>


More information about the llvm-commits mailing list