[llvm] [DAG] ISD::matchUnaryPredicate / matchUnaryFpPredicate / matchBinaryPredicate - add DemandedElts variant (PR #183013)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 2 02:04:15 PDT 2026
================
@@ -4675,26 +4683,11 @@ bool SelectionDAG::isKnownToBeAPowerOfTwo(SDValue Val,
};
// Is the constant a known power of 2 or zero?
- if (ISD::matchUnaryPredicate(Val, IsPowerOfTwoOrZero))
+ if (ISD::matchUnaryPredicate(Val, DemandedElts, IsPowerOfTwoOrZero,
+ /*AllowUndefs=*/false, /*AllowTruncation=*/true))
----------------
VachanVY wrote:
sorry i was wrong
https://github.com/llvm/llvm-project/pull/183013
More information about the llvm-commits
mailing list