[PATCH] D127354: Implement capability to optimize add negative into subtract positive in AArch64.
Adrian Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 15:10:19 PDT 2022
adriantong1024 created this revision.
adriantong1024 added reviewers: dmgreen, craig.topper.
Herald added subscribers: StephenFan, hiraditya, kristof.beyls.
Herald added a project: All.
adriantong1024 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
t2: v8i16 = AArch64ISD::CMHI t0, t1
t3: v8i16 = BUILD_VECTOR Constant:i32<1>, ...
t4: v8i16 = and t2, t3
t5: v8i16 = add t8, t4
This can be turned into t5: v8i16 = sub t8, t2, and allows us to remove
t3 and t4 from the DAG.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D127354
Files:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/add-negative.ll
llvm/test/CodeGen/AArch64/minmax.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127354.435357.patch
Type: text/x-patch
Size: 3959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220608/228c69d2/attachment.bin>
More information about the llvm-commits
mailing list