[llvm] [AArch64] optimise SVE cmp intrinsics with no active lanes (PR #104779)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 06:09:31 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))
----------------
Lukacma wrote:
Okay I will try coming up with better naming scheme for this. It cannot be just `instCombineSVENoActiveLanes ` as there are multiple different things that can happen when all lanes are inactive, but using it as a base can work.
https://github.com/llvm/llvm-project/pull/104779
More information about the llvm-commits
mailing list