[PATCH] D153326: [CSKY] Optimize subtraction with SUBI32/SUBI16
Zixuan Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 29 02:52:19 PDT 2023
zixuan-wu added inline comments.
================
Comment at: llvm/lib/Target/CSKY/CSKYInstrInfo.td:538
+ def : Pat<(add GPR:$rs1, (oimm12_neg:$im)),
+ (SUBI32 GPR:$rs1, (imm_neg_XFORM oimm12_neg:$im))>;
----------------
I think the similar Pat for SUBI16 should also be added when there is no SUBI32
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153326/new/
https://reviews.llvm.org/D153326
More information about the llvm-commits
mailing list