[llvm] [DAG] isKnownToBeAPowerOfTwo - Power of 2 value is known to be power of 2 after BSWAP/BITREVERSE (PR #182207)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 04:06:43 PST 2026
================
@@ -4762,6 +4762,10 @@ bool SelectionDAG::isKnownToBeAPowerOfTwo(SDValue Val,
isKnownToBeAPowerOfTwo(Val.getOperand(0), /*OrZero=*/false, Depth + 1))
return true;
break;
+ case ISD::BSWAP:
+ case ISD::BITREVERSE:
----------------
RKSimon wrote:
https://github.com/llvm/llvm-project/issues/181642
https://github.com/llvm/llvm-project/pull/182207
More information about the llvm-commits
mailing list