[PATCH] D122968: [AArch64][SelectionDAG] Add target-specific implementation of srem
chenglin.bi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 2 00:06:57 PDT 2022
bcl5980 created this revision.
bcl5980 added reviewers: paulwalker-arm, david-arm, fhahn, craig.topper, efriedma, benshi001.
Herald added subscribers: StephenFan, ecnelises, hiraditya, kristof.beyls.
Herald added a project: All.
bcl5980 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
1. X%C to the equivalent of X-X/C*C is not always fastest path if there is no SDIV pair exist. So check target have faster for srem only first.
2. Add AArch64 faster path for SREM only pow2 case
Fix https://github.com/llvm/llvm-project/issues/54649
https://reviews.llvm.org/D122968
Files:
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/test/CodeGen/AArch64/srem-lkk.ll
llvm/test/CodeGen/AArch64/srem-seteq.ll
llvm/test/CodeGen/AArch64/srem-vector-lkk.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122968.419951.patch
Type: text/x-patch
Size: 15776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220402/298699a5/attachment.bin>
More information about the llvm-commits
mailing list