[llvm] [AArch64][SVE] add missing instcombine x+1 -> x (PR #201851)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 04:00:01 PDT 2026
================
@@ -1806,6 +1806,10 @@ static bool isAllActivePredicate(Value *Pred) {
Pred = UncastedPred;
}
+ if (match(Pred, m_Intrinsic<Intrinsic::aarch64_sve_ptrue>(
+ m_SpecificInt(AArch64SVEPredPattern::all))))
+ return true;
----------------
paulwalker-arm wrote:
Are you sure this is necessary because we canonicalise these calls to a constant and none of the other combines needed it.
https://github.com/llvm/llvm-project/pull/201851
More information about the llvm-commits
mailing list