[llvm] [AArch64][SVE] Enable known bits for predicated shifts (PR #200347)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 01:57:32 PDT 2026
================
@@ -2938,6 +2938,22 @@ void AArch64TargetLowering::computeKnownBitsForTargetNode(
}
break;
}
+ case AArch64ISD::SHL_PRED:
+ case AArch64ISD::SRL_PRED:
+ case AArch64ISD::SRA_PRED: {
+ KnownBits KnownVal =
+ DAG.computeKnownBits(Op->getOperand(1), DemandedElts, Depth + 1);
----------------
david-arm wrote:
In theory the predicate may not be all-true and so we may not be demanding all the elements. However, for scalable vector operations I'm not sure it's possible to demand specific elements?
https://github.com/llvm/llvm-project/pull/200347
More information about the llvm-commits
mailing list