[PATCH] D139272: Branchless optimization for select instructions

Liao Chunyu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 4 06:16:45 PST 2022


liaolucy created this revision.
liaolucy added a reviewer: craig.topper.
Herald added subscribers: StephenFan, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
liaolucy requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.

To reduce the number of branch instructions.
hasShortForwardBranchOpt check was added to the existing optimization.

Perhaps it is not appropriate to modify this test,I made the diff show the changes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139272

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/select-binop-identity.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139272.479917.patch
Type: text/x-patch
Size: 13208 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221204/36e695ff/attachment.bin>


More information about the llvm-commits mailing list