[PATCH] D146635: [LegalizeTypes][RISCV] Add a special case for (add X, -1) to ExpandIntRes_ADDSUB
Liao Chunyu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 23 07:37:38 PDT 2023
liaolucy updated this revision to Diff 507738.
liaolucy edited the summary of this revision.
liaolucy added a comment.
Address comment.
Add Only RHSLo is -1 we can instead do (setne Lo, 0) and more testcases, like gcc: https://godbolt.org/z/M83f6rz39
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146635/new/
https://reviews.llvm.org/D146635
Files:
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/test/CodeGen/RISCV/alu64.ll
llvm/test/CodeGen/RISCV/atomicrmw-uinc-udec-wrap.ll
llvm/test/CodeGen/RISCV/overflow-intrinsics.ll
llvm/test/CodeGen/RISCV/sext-zext-trunc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146635.507738.patch
Type: text/x-patch
Size: 7971 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230323/658e9d6c/attachment-0001.bin>
More information about the llvm-commits
mailing list