[PATCH] D106230: [RISCV] Add custom isel to select (and (srl X, C1), C2) and (and (shl X, C1), C2)
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 18 14:44:37 PDT 2021
craig.topper updated this revision to Diff 359652.
craig.topper added a comment.
Refactor the code a little so we can form srliw from and+srl. This improves sdiv16_constant in div.ll
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106230/new/
https://reviews.llvm.org/D106230
Files:
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/lib/Target/RISCV/RISCVInstrInfoB.td
llvm/test/CodeGen/RISCV/div.ll
llvm/test/CodeGen/RISCV/rem.ll
llvm/test/CodeGen/RISCV/rv32zbp.ll
llvm/test/CodeGen/RISCV/rv64i-exhaustive-w-insts.ll
llvm/test/CodeGen/RISCV/rv64zbp.ll
llvm/test/CodeGen/RISCV/srem-lkk.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106230.359652.patch
Type: text/x-patch
Size: 15208 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210718/e382b74c/attachment.bin>
More information about the llvm-commits
mailing list