[PATCH] D142071: [RISCV] Enable preferZeroCompareBranch to optimize branch on zero in codegenprepare

Liao Chunyu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 18 18:24:01 PST 2023


liaolucy created this revision.
liaolucy added a reviewer: craig.topper.
Herald added subscribers: 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, kristof.beyls, arichardson.
Herald added a project: All.
liaolucy requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

Similar to ARM and SystemZ.

Related Patchs: D101778 <https://reviews.llvm.org/D101778>(preferZeroCompareBranch) 
https://reviews.llvm.org/rG9a9421a461166482465e786a46f8cced63cd2e9f(== 0 to u< 1)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142071

Files:
  llvm/test/CodeGen/RISCV/branch-on-zero.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142071.490350.patch
Type: text/x-patch
Size: 3886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230119/b2cae6a5/attachment-0001.bin>


More information about the llvm-commits mailing list