[llvm] [AArch64][InstCombine] xor(cmpne) -> cmpeq (PR #207007)
Matthew Devereau via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 2 08:33:48 PDT 2026
================
@@ -2142,10 +2142,43 @@ static std::optional<Instruction *> instCombineSVEDupX(InstCombiner &IC,
return IC.replaceInstUsesWith(II, Splat);
}
+static std::optional<Instruction *> instCombineXorSVECmpNE(InstCombiner &IC,
+ IntrinsicInst &II) {
+ if (!match(II.getOperand(2), m_Zero()) || !II.hasOneUse())
+ return std::nullopt;
----------------
MDevereau wrote:
Oh right, I'm clearly talking nonsense. The original case for this was only dealing with ptrue so I'd remembered the XOR as always being ptrue when I was writing that. I agree they don't matter.
https://github.com/llvm/llvm-project/pull/207007
More information about the llvm-commits
mailing list