[PATCH] D153326: [CSKY] Optimize subtraction with SUBI32/SUBI16
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 29 19:36:24 PDT 2023
benshi001 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))>;
----------------
zixuan-wu wrote:
> I think the similar Pat for SUBI16 should also be added when there is no SUBI32
I have added in the file `CSKYInstrInfo16Instr.td`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153326/new/
https://reviews.llvm.org/D153326
More information about the llvm-commits
mailing list