[PATCH] D93292: [AArch64][SVE] Add optimization to remove redundant ptest instructions
Bradley Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 15 03:57:53 PST 2020
bsmith created this revision.
bsmith added reviewers: paulwalker-arm, joechrisellis, peterwaller-arm.
Herald added subscribers: NickHung, psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
bsmith requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch adds a peepholing optimization that removes extra ptest instructions where they are not required, for example:
- ptest of true and another existing condition
- ptest of the same condition twice
Co-Authored-by: Graham Hunter <graham.hunter at arm.com>
Co-Authored-by: Paul Walker <paul.walker at arm.com>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93292
Files:
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.h
llvm/lib/Target/AArch64/SVEInstrFormats.td
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpeq.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpeq.mir
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpge.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpgt.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmphi.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmphs.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmple.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmplo.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpls.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmplt.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpne.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-whilege.mir
llvm/test/CodeGen/AArch64/sve-ptest-removal-whilegt.mir
llvm/test/CodeGen/AArch64/sve-ptest-removal-whilehi.mir
llvm/test/CodeGen/AArch64/sve-ptest-removal-whilehs.mir
llvm/test/CodeGen/AArch64/sve-ptest-removal-whilele.mir
llvm/test/CodeGen/AArch64/sve-ptest-removal-whilelo.mir
llvm/test/CodeGen/AArch64/sve-ptest-removal-whilels.mir
llvm/test/CodeGen/AArch64/sve-ptest-removal-whilelt.mir
llvm/test/CodeGen/AArch64/sve-ptest-removal-whilerw.mir
llvm/test/CodeGen/AArch64/sve-ptest-removal-whilewr.mir
llvm/test/CodeGen/AArch64/sve-setcc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93292.311855.patch
Type: text/x-patch
Size: 171595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201215/5657018a/attachment-0001.bin>
More information about the llvm-commits
mailing list