[llvm-branch-commits] [llvm] [AArch64][llvm] Combine SVE AND-NOT operations into BIC for _x forms (PR #232526)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Oct 19 03:43:04 PDT 2026
================
@@ -22123,6 +22123,19 @@ static SDValue performReinterpretCastCombine(SDNode *N) {
static SDValue performSVEAndCombine(SDNode *N,
TargetLowering::DAGCombinerInfo &DCI) {
SelectionDAG &DAG = DCI.DAG;
+
+ // Fold AND of a predicated NOT into BIC when NOT's inactive lanes do not
+ // matter, leaving standalone NOTs available for predicated selection.
+ for (unsigned I = 0; I != 2; ++I) {
+ SDValue Not = N->getOperand(I);
----------------
CarolineConcatto wrote:
This could crash if the instruction has for some reason dont have N->getOperand(I)?
https://github.com/llvm/llvm-project/pull/232526
More information about the llvm-branch-commits
mailing list