[llvm] [AArch64] optimise SVE cmp intrinsics with no active lanes (PR #104779)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 04:50:27 PDT 2024
================
@@ -1160,6 +1160,10 @@ static std::optional<Instruction *> instCombineSVECmpNE(InstCombiner &IC,
IntrinsicInst &II) {
LLVMContext &Ctx = II.getContext();
+ // Replace by zero constant when all lanes are inactive
+ if (auto II_NA = instCombineSVENoActiveUnaryZero(IC, II))
----------------
paulwalker-arm wrote:
Not relevant to this PR but `instCombineSVENoActiveUnaryZero` seems like a bad name given the context in which the function is now used. Do you mind committing a NFC rename patch to something like `instCombineSVENoActiveLanes`?
https://github.com/llvm/llvm-project/pull/104779
More information about the llvm-commits
mailing list