[PATCH] D154768: [CSKY] Optimize conditional branch and value select with BTSTI
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 4 08:17:36 PDT 2023
benshi001 marked an inline comment as done.
benshi001 added inline comments.
================
Comment at: llvm/lib/Target/CSKY/CSKYInstrInfo.td:1251
let Predicates = [iHas2E3] in {
def : Pat<(setne GPR:$rs1, GPR:$rs2),
(CMPNE32 GPR:$rs1, GPR:$rs2)>;
----------------
zixuan-wu wrote:
> can this opt also applied here?
Thanks. I have added that, and along with a test in `llvm/test/CodeGen/CSKY/cmp-i.ll`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154768/new/
https://reviews.llvm.org/D154768
More information about the llvm-commits
mailing list