[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 Feb 1 23:42:33 PST 2023
liaolucy updated this revision to Diff 494175.
liaolucy added a comment.
@reames Sorry for the late.
precommit tests:https://reviews.llvm.org/rG66a30b9fd0bab0d5db24772674932a66d433212c
I plan to implement similar code in riscv-codegenprepare, including only the initial Shift. This should not have the regression for add.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142071/new/
https://reviews.llvm.org/D142071
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.h
llvm/test/CodeGen/RISCV/branch-on-zero.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142071.494175.patch
Type: text/x-patch
Size: 6027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230202/44374220/attachment.bin>
More information about the llvm-commits
mailing list