[PATCH] D115922: [RISCV] Override hasAndNotCompare to use more andn when have Zbb extension.

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 17 01:35:38 PST 2021


jacquesguan created this revision.
jacquesguan added reviewers: craig.topper, asb, luismarques, frasercrmck, HsiangKai, khchen.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, evandro, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
jacquesguan requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

Enable transform (X & Y) == Y ---> (~X & Y) == 0 and (X & Y) != Y ---> (~X & Y) != 0 when have Zbb extension to use more andn instruction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115922

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/test/CodeGen/RISCV/rv32zbb-zbp.ll
  llvm/test/CodeGen/RISCV/rv64zbb-zbp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115922.395070.patch
Type: text/x-patch
Size: 7896 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211217/9fba1c00/attachment.bin>


More information about the llvm-commits mailing list