[all-commits] [llvm/llvm-project] 7dc550: [LLVM][CodeGen][AArch64] Improve PTEST removal by ...
Paul Walker via All-commits
all-commits at lists.llvm.org
Thu Mar 20 05:43:34 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7dc550473c5239399707804c9466519d165aa7fd
https://github.com/llvm/llvm-project/commit/7dc550473c5239399707804c9466519d165aa7fd
Author: Paul Walker <paul.walker at arm.com>
Date: 2025-03-20 (Thu, 20 Mar 2025)
Changed paths:
M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
M llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpeq.mir
Log Message:
-----------
[LLVM][CodeGen][AArch64] Improve PTEST removal by looking through copies. (#132041)
The general predicates of the PTEST and PTEST_like instructions may
belong to different register classes. This can lead to the insertion of
a COPY instruction, making them appear different. However, for the
purpose of PTEST removal, such copies are irrelevant, and we can look
through them to improve the likelihood of finding a match.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list