[llvm-branch-commits] [llvm] [LoongArch][DAGCombiner] Combine vxor (vand ..) to vandn (PR #161037)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Sep 29 01:27:32 PDT 2025
================
@@ -4960,6 +5040,9 @@ static SDValue performANDCombine(SDNode *N, SelectionDAG &DAG,
if (!Subtarget.has32S())
return SDValue();
+ if (SDValue R = combineAndNotIntoVANDN(N, DL, DAG))
+ return R;
----------------
heiher wrote:
`combineAndNotIntoVANDN` doesn't depend on the `32s` feature, so this check should be moved above the `has32S` guard.
https://github.com/llvm/llvm-project/pull/161037
More information about the llvm-branch-commits
mailing list